/* Çekilişler Sayfası - Modern & Clean Design */

/* Filter Section */
.filter-section {
    margin-bottom: 32px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.filter-count {
    font-size: 14px;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.6);
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #94a3b8;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    min-height: 44px;
}

.filter-tab:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tab-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-icon svg {
    color: currentColor;
}

.tab-text {
    font-weight: 600;
}

.tab-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.filter-tab.active .tab-badge {
    background: rgba(255, 255, 255, 0.3);
}

/* Raffles Section */
.raffles-section {
    margin-bottom: 48px;
}

.raffles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
}

/* Raffle Card */
.raffle-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.raffle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.4);
}

/* Card Header */
.card-header {
    position: relative;
}

.raffle-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.raffle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.raffle-card:hover .raffle-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
}

.type-badge {
    background: rgba(59, 130, 246, 0.9);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.participants-info {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
}

/* Card Body */
.card-body {
    padding: 24px;
}

.sponsor-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.sponsor-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
}

.sponsor-name {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

.raffle-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.raffle-description {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Prize Display */
.prize-display {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.prize-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    flex-shrink: 0;
    color: #f59e0b;
}

.prize-icon svg {
    color: #f59e0b;
}

.prize-info {
    flex: 1;
}

.prize-label {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.prize-amount {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
}

/* Progress Section */
.progress-section {
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.progress-header span:first-child {
    color: #94a3b8;
    font-weight: 500;
}

.progress-percentage {
    color: #10b981;
    font-weight: 700;
}

.progress-bar {
    height: 6px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
}

/* Countdown Section */
.countdown-section {
    margin-bottom: 20px;
}

.countdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #60a5fa;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 12px;
}

.time-unit {
    text-align: center;
    min-width: 40px;
}

.time-value {
    display: block;
    font-size: 18px;
    font-weight: 900;
    color: #f59e0b;
    margin-bottom: 2px;
}

.time-label {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-separator {
    color: #94a3b8;
    font-weight: bold;
    font-size: 16px;
}

.timer-ended {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    border-radius: 8px;
    width: 100%;
}

/* Requirements Section */
.requirements-section {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.requirements-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    color: #94a3b8;
    font-size: 13px;
    padding: 4px 0;
    position: relative;
    padding-left: 20px;
    line-height: 1.4;
}

.requirements-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Card Footer */
.card-footer {
    padding: 20px 24px 24px;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    gap: 12px;
}

.participate-btn {
    flex: 1;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.participate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.details-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.details-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

/* Rules Section */
.rules-section {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 40px 32px;
    margin-top: 48px;
}

.rules-header {
    text-align: center;
    margin-bottom: 32px;
}

.rules-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.rules-title svg {
    color: #3b82f6;
}

.rules-subtitle {
    color: #94a3b8;
    font-size: 16px;
    margin: 0;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.rule-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.rule-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.rule-icon {
    width: 56px;
    height: 56px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 185, 129, 0.2);
    flex-shrink: 0;
    color: #10b981;
}

.rule-icon svg {
    color: #10b981;
}

.rule-content {
    flex: 1;
}

.rule-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.rule-description {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-tab {
        width: 100%;
        justify-content: center;
    }
    
    .raffles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .card-footer {
        padding: 16px 20px 20px;
        flex-direction: column;
    }
    
    .participate-btn {
        width: 100%;
    }
    
    .details-btn {
        width: 100%;
        height: 44px;
    }
    
    .countdown-timer {
        gap: 6px;
        padding: 10px;
    }
    
    .time-unit {
        min-width: 35px;
    }
    
    .time-value {
        font-size: 16px;
    }
    
    .rules-section {
        padding: 32px 20px;
    }
    
    .rules-title {
        font-size: 24px;
        flex-direction: column;
        gap: 8px;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .rule-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .rule-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .card-body {
        padding: 16px;
    }
    
    .card-footer {
        padding: 12px 16px 16px;
    }
    
    .countdown-timer {
        gap: 4px;
        padding: 8px;
    }
    
    .time-unit {
        min-width: 30px;
    }
    
    .time-value {
        font-size: 14px;
    }
    
    .time-label {
        font-size: 9px;
    }
    
    .rules-section {
        padding: 24px 16px;
    }
}

/* Animation for smooth transitions */
.raffle-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.raffle-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animation for multiple cards */
.raffle-card:nth-child(1) { animation-delay: 0.1s; }
.raffle-card:nth-child(2) { animation-delay: 0.2s; }
.raffle-card:nth-child(3) { animation-delay: 0.3s; }
.raffle-card:nth-child(4) { animation-delay: 0.4s; }
.raffle-card:nth-child(5) { animation-delay: 0.5s; }
.raffle-card:nth-child(6) { animation-delay: 0.6s; }
