/* Rules Page Specific Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --gold-gradient: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    --text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    --card-shadow: 0 20px 40px rgba(0,0,0,0.1);
    --hover-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

/* Page Header */
.page-header {
    padding: 12rem 0 4rem 0; /* Increased top padding to compensate for larger navbar */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    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 200 200"><defs><pattern id="spades" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><rect width="40" height="40" fill="rgba(255,255,255,0.05)"/><text x="20" y="25" text-anchor="middle" font-size="16" fill="rgba(255,255,255,0.1)" font-family="serif">♠</text></pattern></defs><rect width="200" height="200" fill="url(%23spades)"/></svg>');
    opacity: 0.3;
}


@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.page-header h2 {
    font-size: clamp(2.5rem, 6vw, 4rem) !important;
    font-weight: 800 !important;
    margin-bottom: 1rem !important;
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
    position: relative !important;
    z-index: 2 !important;
}

.page-header p {
    font-size: clamp(1.2rem, 3vw, 1.8rem) !important;
    color: #ffffff !important;
    font-weight: 400 !important;
    letter-spacing: 1px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4) !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Tournament Overview */
.tournament-overview {
    padding: 3rem 0;
    background: #f8f9fa;
}

.tournament-overview h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #495057;
}

.overview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
    justify-content: center;
    padding: 2rem 0;
}

.overview-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    flex: 1;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.overview-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.overview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.overview-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.overview-item p {
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Rules Section */
.rules-section {
    padding: 3rem 0;
    background: white;
}

.rules-section h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rules-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.rules-list {
    display: grid;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.rule-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rule-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 0 15px 0 100%;
}

.rule-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-left-color: #764ba2;
}

.rule-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.rule-item ul {
    list-style: none;
    padding: 0;
}

.rule-item li {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
}

.rule-item li::before {
    content: '♠';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1rem;
}

/* Special Cards */
.special-cards {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.special-cards::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 200 200"><defs><pattern id="cards" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><rect width="40" height="40" fill="rgba(255,255,255,0.05)"/><text x="20" y="25" text-anchor="middle" font-size="16" fill="rgba(255,255,255,0.1)" font-family="serif">♠</text></pattern></defs><rect width="200" height="200" fill="url(%23cards)"/></svg>');
    opacity: 0.3;
}

.special-cards h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.special-cards h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.card-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.card-item h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f39c12;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-item p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Prize Structure */
.prize-structure {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.prize-structure::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}

.prize-structure h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.prize-structure h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.prize-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid #e9ecef;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.prize-item::before {
    content: '🏆';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 3rem;
    opacity: 0.1;
}

.prize-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.prize-item h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.prize-amount {
    font-size: 4rem;
    font-weight: 900;
    color: #f39c12;
    margin-bottom: 1rem;
    text-shadow: 0 3px 6px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prize-item p {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: white;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    width: 100%;
}

.contact-item {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.contact-item h4 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
}

.contact-item p {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .overview-item {
        padding: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .card-item {
        padding: 1.5rem;
    }
    
    .contact-section {
        padding: 3rem 1rem;
    }
    
    .contact-item {
        padding: 2rem 1.5rem;
        max-width: 100%;
        margin: 0 0.5rem;
    }
    
    .contact-item h4 {
        font-size: 1.5rem;
    }
    
    .contact-item p {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-item {
        padding: 1.5rem 1rem;
        margin: 0 0.25rem;
    }
    
    .contact-item h4 {
        font-size: 1.3rem;
    }
    
    .contact-item p {
        font-size: 1.3rem;
    }
