﻿/* ========================================================
   Events Schedule - Full CSS with Vivid Colors & Transparent
   ======================================================== */

.events-wrapper {
    box-sizing: border-box;
    width: 100%;
    color: #d4cfc4;
    font-family: 'Spartan', sans-serif;
    background: transparent !important;
}

.events-wrapper *,
.events-wrapper *:before,
.events-wrapper *:after {
    box-sizing: border-box;
}

/* الحاوية الرئيسية */
.events-panel {
    background: transparent !important;
    border: none !important;            /* حذف الإطار والخط الأصفر */
    position: relative;
    box-shadow: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* رأس الجدول */
.events-panel-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(139, 105, 20, 0.25);
    background: transparent !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.events-header-icon {
    width: 36px;
    height: 36px;
    background: rgba(218, 165, 32, 0.08);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 105, 20, 0.35);
    color: #daa520;
    flex-shrink: 0;
}

.events-header-text h1 {
    font-size: 15px;
    font-weight: 700;
    color: #e5e0d8;
    margin: 0;
    line-height: 1.2;
    border: none;
    padding: 0;
}

.events-header-text p {
    font-size: 11px;
    color: #8a8580;
    margin: 3px 0 0 0;
    padding: 0;
}

/* أزرار الأيام */
.events-days-bar {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(139, 105, 20, 0.25);
    display: flex;
    gap: 6px;
    background: transparent !important;
    width: 100%;
}

.events-day-btn {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    color: #8a8580;
    border: 1px solid rgba(139, 105, 20, 0.25);
    transition: all 0.2s ease;
}

.events-day-btn:hover {
    border-color: rgba(218, 165, 32, 0.5);
    color: #daa520;
}

.events-day-btn.active {
    background: #daa520;
    color: #080a0e;
    border-color: #daa520;
}

/* ========================================================
   دليل الألوان (Legend Bar) - تصحيح الألوان الصريحة
   ======================================================== */
.events-legend {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(139, 105, 20, 0.15);
    background: transparent !important;
}

.legend-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
}

.legend-badge svg {
    flex-shrink: 0;
}

/* كلاسات الألوان الصريحة */
.badge-main, 
.badge-main span {
    color: #ffd700 !important;
}
.badge-main svg {
    stroke: #ffd700 !important;
}

.badge-weekly, 
.badge-weekly span {
    color: #c084fc !important;
}
.badge-weekly svg {
    stroke: #c084fc !important;
}

.badge-daily, 
.badge-daily span {
    color: #60a5fa !important;
}
.badge-daily svg {
    stroke: #60a5fa !important;
}

.badge-hourly, 
.badge-hourly span {
    color: #4ade80 !important;
}
.badge-hourly svg {
    stroke: #4ade80 !important;
}

.badge-always, 
.badge-always span {
    color: #8a8580 !important;
}
.badge-always svg {
    stroke: #8a8580 !important;
}

/* قسم Always Active */
.events-always-box {
    padding: 14px 16px 12px;
}

.events-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: #8a8580;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.events-section-title .line-divider {
    flex: 1;
    height: 1px;
    background: rgba(139, 105, 20, 0.2);
}

.events-always-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.always-item-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(139, 105, 20, 0.2);
}

.always-item-card:hover {
    border-color: rgba(218, 165, 32, 0.4);
}

.always-item-icon {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    background: rgba(138, 133, 128, 0.1);
    border: 1px solid rgba(138, 133, 128, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8580;
    flex-shrink: 0;
}

.always-item-details {
    flex: 1;
    min-width: 0;
}

.always-item-title {
    font-size: 12px;
    font-weight: 600;
    color: #c0b898;
    margin: 0;
}

.always-item-desc {
    font-size: 10px;
    color: #8a8580;
    margin: 2px 0 0 0;
}

.always-item-img {
    height: 28px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* الخط الزمني */
.timeline-main-area {
    position: relative;
    padding: 24px 14px 34px;
}

.timeline-spine-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, transparent, rgba(218, 165, 32, 0.4) 10%, rgba(218, 165, 32, 0.4) 90%, transparent);
    z-index: 1;
}

.timeline-event-row {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    z-index: 2;
}

.timeline-side-col {
    width: 50%;
    display: flex;
    align-items: center;
}

.timeline-side-left {
    justify-content: flex-end;
    padding-right: 28px;
}

.timeline-side-right {
    justify-content: flex-start;
    padding-left: 28px;
}

/* النقطة الماسية والتوقيت */
.timeline-center-badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.timeline-diamond {
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
    border: 2px solid;
}

.diamond-daily {
    background: #1b3858;
    border-color: rgba(96, 165, 250, 0.8);
}

.diamond-hourly {
    background: #2a8249;
    border-color: #4ade80;
}

.diamond-weekly {
    background: #581c87;
    border-color: #c084fc;
}

.diamond-main {
    background: #ffd700;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.timeline-timestamp {
    font-family: monospace;
    font-size: 10.5px;
    font-weight: 700;
    color: #a5a09a;
    margin-top: 5px;
    white-space: nowrap;
}

/* بطاقة الحدث */
.timeline-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(139, 105, 20, 0.25);
    position: relative;
    width: 100%;
    max-width: 295px;
    transition: transform 0.2s, border-color 0.2s;
}

.timeline-card:hover {
    transform: scale(1.02);
    border-color: rgba(218, 165, 32, 0.5);
}

.timeline-card.is-main {
    background: linear-gradient(to right, rgba(255, 215, 0, 0.12), rgba(0, 0, 0, 0.45));
    border-color: rgba(255, 215, 0, 0.5);
}

.timeline-side-left .timeline-card::after {
    content: "";
    position: absolute;
    right: -28px;
    top: 50%;
    width: 28px;
    height: 2px;
    background: rgba(218, 165, 32, 0.4);
}

.timeline-side-right .timeline-card::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 50%;
    width: 28px;
    height: 2px;
    background: rgba(218, 165, 32, 0.4);
}

.timeline-side-left .timeline-card.is-main::after,
.timeline-side-right .timeline-card.is-main::before {
    background: rgba(255, 215, 0, 0.7);
}

.event-type-icon {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-daily {
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #60a5fa;
}

.icon-hourly {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #4ade80;
}

.icon-weekly {
    background: rgba(192, 132, 252, 0.15);
    border: 1px solid rgba(192, 132, 252, 0.4);
    color: #c084fc;
}

.icon-main {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #ffd700;
}

.event-info {
    flex: 1;
    min-width: 0;
}

.event-title-text {
    font-size: 12px;
    font-weight: 700;
    color: #daa520;
    margin: 0;
    line-height: 1.25;
}

.event-title-text.gold-text {
    color: #ffd700;
}

.event-reward-desc {
    font-size: 10px;
    color: #a5a09a;
    margin: 2px 0 0 0;
    line-height: 1.2;
}

.event-reward-thumb {
    height: 26px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.day-pane {
    display: none;
}

.day-pane.active {
    display: block;
}