/* Rankings Page Styles */

.rankings-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding-top: 2rem;
}

.page-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    margin-bottom: 3rem;
    border-radius: 0 0 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="ranking-pattern" width="15" height="15" patternUnits="userSpaceOnUse"><polygon points="7.5,0 15,15 0,15" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23ranking-pattern)"/></svg>');
    opacity: 0.6;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.page-description {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.ranking-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: white;
    color: #7c3aed;
    border-color: white;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.rankings-list {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.ranking-item {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.ranking-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ranking-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: #a855f7;
}

.ranking-item:hover::before {
    transform: scaleX(1);
}

.rank-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
    position: relative;
}

.rank-number::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    z-index: -1;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
}

.casino-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.casino-logo {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #6b7280;
    border: 2px solid var(--border);
}

.casino-details h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.casino-bonus {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.casino-bonus strong {
    font-weight: 700;
}

.casino-features {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4338ca;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #c7d2fe;
}

.casino-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #fbbf24;
    font-size: 1rem;
}

.rating-value {
    font-weight: 600;
    color: var(--foreground);
    font-size: 0.9rem;
}

.ranking-actions {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    min-width: 150px;
}

.ranking-methodology {
    background: white;
    border-radius: 1.5rem;
    padding: 4rem 3rem;
    margin-bottom: 4rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.ranking-methodology h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.methodology-item {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.methodology-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #a855f7;
}

.methodology-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #7c3aed;
}

.methodology-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.methodology-item p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

.ranking-disclaimer {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-radius: 1.5rem;
    padding: 3rem;
    border: 2px solid #f59e0b;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.1);
}

.ranking-disclaimer h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 1.5rem;
    text-align: center;
}

.ranking-disclaimer ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.ranking-disclaimer li {
    padding: 0.75rem 0;
    color: #92400e;
    border-bottom: 1px solid rgba(146, 64, 14, 0.2);
    position: relative;
    padding-left: 2rem;
    line-height: 1.6;
}

.ranking-disclaimer li:before {
    content: '⚠️';
    position: absolute;
    left: 0;
    top: 0.75rem;
}

.ranking-disclaimer li:last-child {
    border-bottom: none;
}

.footer {
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.responsible-gaming-logos {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.responsible-gaming-logos span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid var(--border);
    padding: 1.5rem;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.cookie-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.cookie-text p {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .ranking-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .ranking-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .casino-info {
        flex-direction: column;
        text-align: center;
    }
    
    .ranking-actions {
        flex-direction: row;
        justify-content: center;
        min-width: auto;
    }
    
    .methodology-grid {
        grid-template-columns: 1fr;
    }
    
    .ranking-methodology,
    .ranking-disclaimer {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        justify-content: center;
    }
}