/* Events Page - Modern Design */

/* Header Section */
.events-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-2xl);
    background: linear-gradient(135deg, rgba(12, 108, 254, 0.08) 0%, rgba(12, 108, 254, 0.02) 100%);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.events-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(12, 108, 254, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.header-content {
    position: relative;
    z-index: 1;
}

/* Events Section */
.events-section {
    margin-bottom: var(--space-2xl);
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
}

/* Event Card - Base Styles */
.event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f3f4f6;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #0056d6 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.event-card:hover::before {
    transform: scaleX(1);
}

.event-card:hover {
    transform: translateY(-10px);
}

/* Timezone Notice */
.timezone-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(12, 108, 254, 0.1) 0%, rgba(12, 108, 254, 0.05) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    border: 1px solid rgba(12, 108, 254, 0.2);
}

.timezone-notice svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.timezone-notice-text {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

@media (max-width: 576px) {
    .timezone-notice {
        padding: 10px 16px;
        gap: 8px;
    }
    
    .timezone-notice svg {
        width: 16px;
        height: 16px;
    }
    
    .timezone-notice-text {
        font-size: var(--font-size-xs);
    }
}

/* Active Event Style - ANIMATED GLOW */
.active-event {
    border-left: 5px solid #ef4444;
    background: linear-gradient(145deg, #ffffff 0%, #fef2f2 100%);
    animation: active-glow 2s ease-in-out infinite;
}

.active-event::before {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    transform: scaleX(1) !important;
}

.active-event:hover {
    border-left-color: #dc2626;
    border-color: #ef4444;
    box-shadow: 0 20px 50px rgba(239, 68, 68, 0.4);
}

@keyframes active-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 20px 5px rgba(239, 68, 68, 0.6);
    }
}

/* Upcoming Event Style - PRIMARY COLOR (MAVİ) */
.upcoming-event {
    border-left: 5px solid var(--primary-color);
    background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
}

.upcoming-event::before {
    background: linear-gradient(90deg, var(--primary-color) 0%, #0056d6 100%);
}

.upcoming-event:hover {
    border-left-color: #0056d6;
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(12, 108, 254, 0.2);
}

/* Past Event Style - GRİ */
.past-event {
    border-left: 5px solid #9ca3af;
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    opacity: 0.85;
    filter: grayscale(20%);
}

.past-event::before {
    background: linear-gradient(90deg, #9ca3af 0%, #6b7280 100%);
}

.past-event:hover {
    opacity: 1;
    filter: grayscale(0%);
    border-left-color: #6b7280;
    border-color: #9ca3af;
    box-shadow: 0 20px 50px rgba(156, 163, 175, 0.2);
}

/* Event Badge */
.event-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.event-badge svg {
    width: 14px;
    height: 14px;
}

.past-badge {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

/* Event Icon Wrapper */
.event-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: var(--space-lg);
    background: linear-gradient(145deg, #f9fafb 0%, #ffffff 100%);
    overflow: visible;
}

/* Action Buttons */
.event-actions {
    position: absolute;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.action-button {
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, rgba(12, 108, 254, 0.9) 0%, rgba(0, 86, 214, 0.9) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(12, 108, 254, 0.3);
}

.action-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(12, 108, 254, 0.5);
}

.action-button:active {
    transform: scale(0.95);
}

.action-button svg {
    width: 20px;
    height: 20px;
    color: white;
}

.download-button {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.download-button:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.event-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.event-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(12, 108, 254, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.event-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 15px 35px rgba(0, 0, 0, 0.1),
        inset 0 -2px 8px rgba(0, 0, 0, 0.05),
        inset 0 2px 8px rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    background-color: white;
    transform: translateZ(0);
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.icon-glow {
    position: absolute;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(12, 108, 254, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.active-glow {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.4) 0%, transparent 70%);
    animation: glow-pulse 2s ease-in-out infinite;
    opacity: 1;
}

@keyframes glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.upcoming-event:hover .icon-glow {
    opacity: 1;
}

.event-card:hover .event-icon {
    transform: scale(1.15) translateY(-5px) rotateY(10deg);
    box-shadow: 
        0 12px 32px rgba(12, 108, 254, 0.3),
        0 20px 50px rgba(0, 0, 0, 0.15),
        inset 0 -3px 10px rgba(0, 0, 0, 0.08),
        inset 0 3px 10px rgba(255, 255, 255, 0.9);
}

.past-event .event-icon {
    filter: brightness(0.95);
}

/* Event Details */
.event-details {
    padding: var(--space-md) var(--space-lg) var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.event-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-text-color);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

/* Title Colors by Status */
.upcoming-event .event-title {
    color: var(--primary-color);
}

.active-event .event-title {
    color: #ef4444;
}

.past-event .event-title {
    color: #6b7280;
}

/* Event Dates */
.event-dates {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.event-date-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius-lg);
}

.event-date-item svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
    margin-top: 0; /* DEĞİŞTİR */
}

/* Start Date Layout */
.event-date-item.start-date {
    border-left: 3px solid;
}

/* End Date Layout - REVERSE */
.event-date-item.end-date {
    flex-direction: row-reverse;
    border-right: 3px solid;
}

.event-date-item.end-date .date-content {
    align-items: flex-end;
    text-align: right;
}

/* UPCOMING EVENT - MAVİ */
.upcoming-event .event-date-item.start-date {
    border-left-color: var(--primary-color);
    background: rgba(12, 108, 254, 0.06);
}

.upcoming-event .event-date-item.start-date svg {
    color: var(--primary-color);
}

.upcoming-event .event-date-item.end-date {
    border-right-color: var(--primary-color);
    background: rgba(12, 108, 254, 0.06);
}

.upcoming-event .event-date-item.end-date svg {
    color: var(--primary-color);
}

/* ACTIVE EVENT - KIRMIZI */
.active-event .event-date-item.start-date {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
}

.active-event .event-date-item.start-date svg {
    color: #ef4444;
}

.active-event .event-date-item.end-date {
    border-right-color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
}

.active-event .event-date-item.end-date svg {
    color: #ef4444;
}

/* PAST EVENT - GRİ */
.past-event .event-date-item.start-date {
    border-left-color: #9ca3af;
    background: rgba(156, 163, 175, 0.06);
}

.past-event .event-date-item.start-date svg {
    color: #9ca3af;
}

.past-event .event-date-item.end-date {
    border-right-color: #9ca3af;
    background: rgba(156, 163, 175, 0.06);
}

.past-event .event-date-item.end-date svg {
    color: #9ca3af;
}

.date-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.date-label {
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--secondary-text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 20px; /* EKLE - SVG ile aynı yükseklik */
}

.date-value {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--primary-text-color);
    line-height: 1.4;
}

/* Countdown Wrapper */
.countdown-wrapper {
    background: linear-gradient(145deg, #f9fafb 0%, #ffffff 100%);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 2px solid #e5e7eb;
}

.countdown-label {
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--secondary-text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
    text-align: center;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-value {
    font-size: var(--font-size-l);
    font-weight: 700;
    color: var(--primary-text-color);
    line-height: 1;
    text-align: center;
    background: white;
    padding: 8px 6px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.15s ease;
    min-width: 60px;
    width: 60px;
}

.active-event .countdown-value {
    color: #ef4444;
}

.countdown-separator {
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--secondary-text-color);
    margin: 0;
}

.event-explanation {
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--secondary-text-color);
    margin: 0;
}

.event-explanation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-explanation-list li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--secondary-text-color);
}

.event-explanation-list li:last-child {
    margin-bottom: 0;
}

.bullet-point {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1em;
}

/* Watermark for sharing */
.event-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 2px;
    pointer-events: none;
    z-index: 1;
    user-select: none;
    white-space: nowrap;
}

/* Watermark Colors by Status - Yumuşak Renkler */
.upcoming-event .event-watermark {
    color: rgba(59, 130, 246, 0.2);
}

.active-event .event-watermark {
    color: rgba(248, 113, 113, 0.2);
}

.past-event .event-watermark {
    color: rgba(156, 163, 175, 0.2);
}

/* No Events Message */
.no-events {
    text-align: center;
    padding: var(--space-2xl);
    background: linear-gradient(145deg, #f9fafb 0%, #ffffff 100%);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: var(--space-2xl) 0;
}

.no-events-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(12, 108, 254, 0.1) 0%, rgba(12, 108, 254, 0.05) 100%);
    border-radius: 50%;
}

.no-events-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.no-events h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-text-color);
    margin-bottom: var(--space-sm);
}

.no-events p {
    font-size: var(--font-size-lg);
    color: var(--secondary-text-color);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .events-header {
        padding: var(--space-xl);
    }
    
    .events-header::before {
        width: 300px;
        height: 300px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .event-icon-wrapper {
        min-height: 120px;
        padding: var(--space-md);
    }
    
    .event-icon {
        width: 80px;
        height: 80px;
    }
    
    .icon-glow,
    .active-glow {
        width: 110px;
        height: 110px;
    }
    
    .countdown {
        gap: 3px;
    }
    
    .countdown-value {
        font-size: var(--font-size-base);
        padding: 6px 4px;
        min-width: 52px;
        width: 52px;
    }
    
    .countdown-separator {
        font-size: var(--font-size-base);
    }
    
    .event-explanation {
        padding-left: var(--space-sm);
    }
    
    .event-explanation-list li {
        font-size: var(--font-size-sm);
    }
    
    .event-date-item {
        padding: 10px;
    }
    
    .event-date-item svg {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
        margin-top: 0; /* SIFIR */
    }
    
    .date-label {
        font-size: 10px;
        line-height: 18px; /* DEĞİŞTİR - Mobilde SVG ile aynı (18px) */
    }
    
    .date-value {
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 576px) {
    
    .event-title {
        font-size: var(--font-size-lg);
    }
    
    .event-badge {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .countdown {
        gap: 2px;
    }
    
    .countdown-value {
        font-size: var(--font-size-sm);
        padding: 6px 3px;
        min-width: 45px;
        width: 45px;
    }
    
    .countdown-separator {
        font-size: var(--font-size-sm);
    }
    
    .event-explanation {
        padding-left: 0;
    }
    
    .event-explanation-list li {
        font-size: var(--font-size-xs);
        margin-bottom: 6px;
    }
    .action-button {
        width: 36px;
        height: 36px;
    }
    
    .action-button svg {
        width: 18px;
        height: 18px;
    }
    
    .event-actions {
        gap: 6px;
    }
}

@media (max-width: 400px) {
    .countdown-value {
        font-size: 11px;
        padding: 5px 2px;
        min-width: 40px;
        width: 40px;
    }
    
    .countdown-separator {
        font-size: 11px;
    }
}

/* Toast Styles */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    min-width: 250px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 576px) {
    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        min-width: auto;
    }
}

/* Ad Event Card */
.ad-event-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: linear-gradient(145deg, #f9fafb 0%, #ffffff 100%);
    border: 2px solid #f3f4f6 !important;
    min-height: 100%;
}

.ad-event-card::before {
    display: none !important;
}

.ad-event-card:hover {
    transform: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.ad-event-card .adsbygoogle {
    width: 100%;
    min-height: 250px;
}