@import url('https://v1.fontapi.ir/css/Vazir');
@import url('https://v1.fontapi.ir/css/Mikhak');

:root {
    --gold: #d4af37;
    --gold-light: #f1e5bc;
    --gold-dark: #a98b2a;
    --gold-subtle: rgba(212, 175, 55, 0.1);
    --black: #0a0a0a;
    --dark-gray: #151515;
    --medium-gray: #222222;
    --light-gray: #333333;
    --white: #ffffff;
    --off-white: #f8f8f8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    font-family: 'Vazir', 'Mikhak', Arial, sans-serif;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Pattern Overlay */
.pattern-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d5a021' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    background-color: var(--dark-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes shine {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-gray);
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, transparent 70%),
        linear-gradient(rgba(10, 10, 10, 0.5), rgba(10, 10, 10, 0.5));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.logo {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--gold), var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    position: relative;
    animation: fadeIn 1s ease forwards;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    background-size: 200% 100%;
    animation: shine 3s infinite linear;
    -webkit-background-clip: text;
    background-clip: text;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
}

.tagline {
    font-size: 1.6rem;
    color: var(--off-white);
    margin-bottom: 3rem;
    font-weight: 300;
    padding: 0 1rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.3s;
}

.header-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    width: 100%;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(15, 15, 15, 0.8);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    text-decoration: none;
    color: var(--white);
}

.livestream-link {
    cursor: pointer;
}

.livestream-link:hover {
    background-color: rgba(30, 30, 30, 0.9);
}

.detail-item:nth-child(1) {
    animation: slideUp 0.6s forwards 0.5s;
}

.detail-item:nth-child(2) {
    animation: slideUp 0.6s forwards 0.7s;
}

.detail-item:nth-child(3) {
    animation: slideUp 0.6s forwards 0.9s;
}

.detail-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.detail-item i {
    color: var(--gold);
    font-size: 1.4rem;
}

.golden-button {
    display: inline-block;
    background: linear-gradient(to right, var(--gold), var(--gold-dark));
    color: var(--black);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s forwards 1.1s;
}

.golden-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.golden-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.golden-button:hover::before {
    left: 100%;
}

/* Main Content */
main {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

.intro {
    background-color: var(--medium-gray);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 4rem;
    border-left: 5px solid var(--gold);
    border-right: 5px solid var(--gold);
    line-height: 1.8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1s forwards 0.3s;
}

.intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--gold-subtle), transparent);
    opacity: 0.1;
}

.intro p {
    position: relative;
    z-index: 1;
    color: var(--off-white);
    font-size: 1.05rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--white);
    position: relative;
    display: inline-block;
    font-weight: 700;
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--gold), transparent);
    border-radius: 2px;
}

/* Winners Grid */
.winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.winner-card {
    background: linear-gradient(145deg, var(--medium-gray) 0%, var(--dark-gray) 100%);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.winner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--gold-subtle));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.winner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: var(--gold);
}

.winner-card:hover::before {
    opacity: 0.5;
}

.category {
    background: linear-gradient(to right, var(--gold), var(--gold-dark));
    color: var(--black);
    padding: 1rem 1.5rem;
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.category::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
}

.winner-card:hover .category::after {
    left: 100%;
}

.winner {
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.winner-name {
    font-size: 1.3rem;
    margin: 1rem 0;
    color: var(--white);
    transition: color 0.3s ease;
    font-weight: 700;
}

.winner-card:hover .winner-name {
    color: var(--gold-light);
}

.trophy-icon {
    color: var(--gold);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
    display: inline-block;
}

.winner-card:hover .trophy-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--gold-light);
}

.trophy-icon i {
    filter: drop-shadow(0 0 3px rgba(213, 160, 33, 0.3));
}

.winner-card:hover .trophy-icon i {
    filter: drop-shadow(0 0 8px rgba(213, 160, 33, 0.6));
}

.special-award {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.08) 0%, var(--dark-gray) 100%);
    border: 2px solid var(--gold);
    position: relative;
}

.special-award::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--gold) 0%, transparent 50%, var(--gold) 100%);
    border-radius: 14px;
    z-index: -1;
    opacity: 0.3;
}

.special-award .category {
    background: linear-gradient(to right, var(--gold), var(--gold-dark), var(--gold));
    font-size: 1.2rem;
    padding: 1.2rem 1.5rem;
}

.special-award .trophy-icon {
    font-size: 2.5rem;
}

.special-award .winner-name {
    font-size: 1.5rem;
}

.special-note {
    color: var(--gold-light);
    font-size: 0.95rem;
    margin-top: 0.8rem;
    font-style: italic;
    opacity: 0.8;
}

/* Footer */
footer {
    background: linear-gradient(to top, var(--black) 0%, var(--dark-gray) 100%);
    padding: 4rem 0 2rem;
    text-align: center;
    position: relative;
    border-top: 2px solid var(--gold);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: radial-gradient(ellipse at bottom, rgba(213, 160, 33, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--black);
    color: var(--gold);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 1px solid var(--gold);
}

.social-link:hover {
    transform: translateY(-5px);
    background-color: var(--gold);
    color: var(--black);
    box-shadow: 0 5px 15px rgba(213, 160, 33, 0.3);
}

.copyright {
    color: var(--gold-light);
    opacity: 0.6;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Responsive Adjustments - Improved for Mobile */
@media (max-width: 1200px) {
    .winners-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .winners-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .logo {
        font-size: 4rem;
    }
    
    .special-award {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }
    
    .logo {
        font-size: 3.2rem;
    }
    
    .tagline {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }
    
    .header-details {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .detail-item {
        width: 100%;
        max-width: 300px;
    }
    
    .winners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .intro {
        padding: 1.5rem;
    }
    
    .golden-button {
        padding: 0.8rem 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 3rem 0;
        min-height: auto;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .logo::after {
        width: 70px;
        bottom: -7px;
    }
    
    .tagline {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .detail-item {
        padding: 0.8rem 1.2rem;
    }
    
    .winners-grid {
        grid-template-columns: 1fr;
    }
    
    .winner-card {
        height: auto;
        min-height: 200px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-title::after {
        width: 70px;
        bottom: -10px;
    }
    
    .winner-name {
        font-size: 1.2rem;
    }
    
    .trophy-icon {
        font-size: 2rem;
    }
    
    .category {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    .winner {
        padding: 1.5rem;
    }
    
    .footer-logo {
        font-size: 1.8rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 380px) {
    .logo {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .golden-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}