/* ===========================================
   ÇEKILIŞ SAYFASI STİLLERİ
   =========================================== */

/* Tabs */
.gw-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 6px;
}

.gw-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Rubik', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gw-tab:hover {
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.04);
}

.gw-tab.active {
    background: rgba(129,140,248,0.15);
    color: #818CF8;
    font-weight: 600;
}

.gw-tab .material-symbols-rounded {
    font-size: 20px;
}

/* Grid */
.gw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

/* Card */
.gw-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gw-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #818CF8, #6366f1, #a78bfa);
    opacity: 0;
    transition: opacity 0.3s;
}

.gw-card:hover {
    border-color: rgba(129,140,248,0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(129,140,248,0.08);
}

.gw-card:hover::before {
    opacity: 1;
}

.gw-card.gw-completed::before {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.gw-card.gw-completed:hover {
    border-color: rgba(245,158,11,0.2);
    box-shadow: 0 8px 32px rgba(245,158,11,0.08);
}

/* Card Top */
.gw-card-top {
    margin-bottom: 16px;
}

.gw-card-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.gw-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.gw-status-dot.dot-active {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16,185,129,0.5);
    animation: dotPulse 2s ease-in-out infinite;
}

.gw-status-dot.dot-completed {
    background: #f59e0b;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 4px rgba(16,185,129,0.4); }
    50% { box-shadow: 0 0 12px rgba(16,185,129,0.7); }
}

.gw-card-status {
    color: rgba(255,255,255,0.5);
}

.gw-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.gw-card-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
}

/* Prize Box */
.gw-prize-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(129,140,248,0.1), rgba(99,102,241,0.05));
    border: 1px solid rgba(129,140,248,0.15);
    border-radius: 12px;
    margin-bottom: 16px;
}

.gw-prize-box .material-symbols-rounded {
    font-size: 28px;
    color: #818CF8;
}

.gw-prize-text {
    display: flex;
    flex-direction: column;
}

.gw-prize-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

.gw-prize-value {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-top: 2px;
}

.gw-completed .gw-prize-box {
    background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(249,115,22,0.05));
    border-color: rgba(245,158,11,0.15);
}

.gw-completed .gw-prize-box .material-symbols-rounded {
    color: #f59e0b;
}

/* Info Row */
.gw-info-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.gw-info-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    text-align: center;
}

.gw-info-item .material-symbols-rounded {
    font-size: 20px;
    color: #818CF8;
}

.gw-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.gw-info-label {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}

/* Countdown */
.gw-countdown {
    margin-bottom: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(5,150,105,0.04));
    border: 1px solid rgba(16,185,129,0.15);
    border-radius: 12px;
}

.gw-countdown-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #10b981;
    margin-bottom: 12px;
}

.gw-countdown-label .material-symbols-rounded {
    font-size: 18px;
}

.gw-countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.gw-cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    padding: 8px 6px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
}

.gw-cd-num {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.gw-cd-label {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    margin-top: 4px;
}

.gw-cd-sep {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    padding: 0 2px;
}

.gw-cd-ended {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #10b981;
    padding: 8px;
}

/* Winners Section */
.gw-winners {
    margin-bottom: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(249,115,22,0.04));
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 12px;
}

.gw-winners-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 12px;
}

.gw-winners-title .material-symbols-rounded {
    font-size: 20px;
}

.gw-winners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gw-winner-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    color: #fbbf24;
    transition: all 0.2s;
}

.gw-winner-chip:hover {
    background: rgba(245,158,11,0.18);
    transform: translateY(-1px);
}

.gw-winner-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.gw-winner-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

/* Action Buttons */
.gw-action {
    margin-bottom: 12px;
}

.gw-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.gw-btn .material-symbols-rounded {
    font-size: 20px;
}

.gw-btn-join {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 16px rgba(16,185,129,0.25);
}

.gw-btn-join:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(16,185,129,0.35);
}

.gw-btn-joined {
    background: rgba(129,140,248,0.15);
    color: #818CF8;
    border: 1px solid rgba(129,140,248,0.2);
}

.gw-btn-joined:hover {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
    border-color: rgba(239,68,68,0.2);
}

.gw-btn-login {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.1);
}

.gw-btn-login:hover {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}

.gw-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Card Footer */
.gw-card-footer {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.gw-card-footer span {
    font-size: 12px;
    color: rgba(255,255,255,0.25);
}

/* Empty State */
.gw-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.4);
}

.gw-empty .material-symbols-rounded {
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}

.gw-empty p {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.gw-empty-sub {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: rgba(255,255,255,0.25) !important;
}

/* Skeleton */
.gw-card-skeleton {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 24px;
}

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Toast Notification */
.gw-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Rubik', sans-serif;
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.gw-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.gw-toast-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.gw-toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.gw-toast-info {
    background: linear-gradient(135deg, #818CF8, #6366f1);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .gw-grid {
        grid-template-columns: 1fr;
    }

    .gw-tabs {
        flex-direction: column;
    }

    .gw-info-row {
        flex-wrap: wrap;
    }

    .gw-info-item {
        min-width: calc(50% - 6px);
    }

    .gw-countdown-timer {
        gap: 2px;
    }

    .gw-cd-block {
        min-width: 42px;
        padding: 6px 4px;
    }

    .gw-cd-num {
        font-size: 18px;
    }

    .gw-card-footer {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .gw-card {
        padding: 18px;
    }

    .gw-card-title {
        font-size: 16px;
    }

    .gw-info-row {
        gap: 8px;
    }
}
