/* ========= فونت ایران سنس ========= */
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: bold;
    src: url('/colorlib/fonts/iransans/eot/IRANSansWeb_Bold.eot');
    src: url('/colorlib/fonts/iransans/eot/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'),
    url('/colorlib/fonts/iransans/woff2/IRANSansWeb_Bold.woff2') format('woff2'),
    url('/colorlib/fonts/iransans/woff/IRANSansWeb_Bold.woff') format('woff'),
    url('/colorlib/fonts/iransans/ttf/IRANSansWeb_Bold.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 500;
    src: url('/colorlib/fonts/iransans/eot/IRANSansWeb_Medium.eot');
    src: url('/colorlib/fonts/iransans/eot/IRANSansWeb_Medium.eot?#iefix') format('embedded-opentype'),
    url('/colorlib/fonts/iransans/woff2/IRANSansWeb_Medium.woff2') format('woff2'),
    url('/colorlib/fonts/iransans/woff/IRANSansWeb_Medium.woff') format('woff'),
    url('/colorlib/fonts/iransans/ttf/IRANSansWeb_Medium.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 300;
    src: url('/colorlib/fonts/iransans/eot/IRANSansWeb_Light.eot');
    src: url('/colorlib/fonts/iransans/eot/IRANSansWeb_Light.eot?#iefix') format('embedded-opentype'),
    url('/colorlib/fonts/iransans/woff2/IRANSansWeb_Light.woff2') format('woff2'),
    url('/colorlib/fonts/iransans/woff/IRANSansWeb_Light.woff') format('woff'),
    url('/colorlib/fonts/iransans/ttf/IRANSansWeb_Light.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 200;
    src: url('/colorlib/fonts/iransans/eot/IRANSansWeb_UltraLight.eot');
    src: url('/colorlib/fonts/iransans/eot/IRANSansWeb_UltraLight.eot?#iefix') format('embedded-opentype'),
    url('/colorlib/fonts/iransans/woff2/IRANSansWeb_UltraLight.woff2') format('woff2'),
    url('/colorlib/fonts/iransans/woff/IRANSansWeb_UltraLight.woff') format('woff'),
    url('/colorlib/fonts/iransans/ttf/IRANSansWeb_UltraLight.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    src: url('/colorlib/fonts/iransans/eot/IRANSansWeb.eot');
    src: url('/colorlib/fonts/iransans/eot/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
    url('/colorlib/fonts/iransans/woff2/IRANSansWeb.woff2') format('woff2'),
    url('/colorlib/fonts/iransans/woff/IRANSansWeb.woff') format('woff'),
    url('/colorlib/fonts/iransans/ttf/IRANSansWeb.ttf') format('truetype');
}

@font-face {
    font-family: 'IranSansNumbers';
    font-style: normal;
    font-weight: normal;
    src: url('/colorlib/fonts/iransans/num/IRANSansWeb(FaNum).woff2') format("woff2"), 
         url('/colorlib/fonts/iransans/num/IRANSansWeb(FaNum).woff') format("woff"), 
         url('/colorlib/fonts/iransans/num/IRANSansWeb(FaNum).ttf') format("truetype"), 
         url('/colorlib/fonts/iransans/num/IRANSansWeb(FaNum).eot') format("embedded-opentype");
}

/* ========= متغیرهای رنگی ========= */
:root {
    /* رنگ‌های استقلال */
    --esteghlal-primary: #0066cc;
    --esteghlal-secondary: #004499;
    --esteghlal-light: rgba(0, 102, 204, 0.1);
    --esteghlal-gradient: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    
    /* رنگ‌های پرسپولیس */
    --persepolis-primary: #dc2626;
    --persepolis-secondary: #b91c1c;
    --persepolis-light: rgba(220, 38, 38, 0.1);
    --persepolis-gradient: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    
    /* رنگ‌های کلی */
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --border-light: #e2e8f0;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.15);
    
    /* رادیوس‌ها */
    --radius-small: 8px;
    --radius-medium: 16px;
    --radius-large: 24px;
    --radius-xl: 32px;
}

/* ========= پایه ========= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IRANSans', 'IranSansNumbers', 'Vazirmatn', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 102, 204, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.02) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========= بخش Hero ========= */
.hero-section {
    position: relative;
    min-height: auto;
    height: auto;
    padding: 40px 0;
    background: linear-gradient(135deg, var(--esteghlal-primary) 0%, var(--persepolis-primary) 100%);
    color: white;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.flames-bg {
    position: absolute;
    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='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M30 30c-10 0-20-10-20-20s10-20 20-20 20 10 20 20-10 20-20 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 6s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px 20px;
}

.main-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 40px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: titlePulse 3s ease-in-out infinite;
}

.title-fire {
    display: inline-block;
    font-size: 1.2em;
    animation: bounce 2s ease-in-out infinite;
}

.title-text {
    background: linear-gradient(45deg, #fff, #f0f0f0, #fff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.teams-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.team-side {
    flex: 1;
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
    animation: teamFloat 3s ease-in-out infinite;
    min-width: 200px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* استقلال در سمت راست */
.esteghlal-side {
    order: 1;
    animation-delay: -1s;
}

/* پرسپولیس در سمت چپ */
.persepolis-side {
    order: 3;
    animation-delay: -3s;
}

.team-side:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.team-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

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

.team-logo:hover .team-img {
    transform: scale(1.1) rotate(5deg);
}

.team-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.team-name.esteghlal {
    color: #87ceeb;
}

.team-name.persepolis {
    color: #ff6b6b;
}

.team-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.vs-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    order: 2;
}

.vs-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    position: relative;
    animation: vsRotate 4s linear infinite;
}

.vs-text {
    font-size: 1.2rem;
    font-weight: 900;
    color: #1a1a1a;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.lightning-effect {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        #ffd700 30deg,
        transparent 60deg,
        #ffd700 90deg,
        transparent 120deg,
        #ffd700 150deg,
        transparent 180deg,
        #ffd700 210deg,
        transparent 240deg,
        #ffd700 270deg,
        transparent 300deg,
        #ffd700 330deg,
        transparent 360deg
    );
    animation: lightning 2s linear infinite;
    opacity: 0.7;
}

.derby-badge {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-medium);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.derby-badge i {
    color: #ffd700;
    margin-left: 5px;
}

/* ========= بخش اصلی نظرسنجی ========= */
.survey-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px;
    margin: 20px auto;
    max-width: 900px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.survey-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--esteghlal-primary), #ffd700, var(--persepolis-primary));
}

.survey-question {
    text-align: center;
    margin-bottom: 50px;
}

.survey-question h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    margin-top: 11px;
}

.question-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

/* ========= پیام رأی قبلی ========= */
.already-voted-message {
    display: none;
    margin-bottom: 30px;
}

.already-voted-message.show {
    display: block;
    animation: slideDown 0.5s ease;
}

.voted-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 15px 25px;
    border-radius: var(--radius-medium);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.voted-badge i {
    font-size: 1.2rem;
}

/* ========= دکمه‌های رأی ========= */
.vote-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 700px;
    margin: 0 auto 50px;
}

.vote-buttons.hidden {
    display: none;
}

.btn {
    position: relative;
    border: none;
    border-radius: var(--radius-large);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 120px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: var(--shadow-light);
    background: white;
}

.btn-esteghlal {
    background: var(--esteghlal-gradient);
    color: white;
    border: 3px solid var(--esteghlal-secondary);
}

.btn-persepolis {
    background: var(--persepolis-gradient);
    color: white;
    border: 3px solid var(--persepolis-secondary);
}

.btn:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.btn:active {
    transform: translateY(-4px) scale(1.01);
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.btn-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.btn-icon img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.btn-text {
    text-align: center;
}

.btn-team-name {
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.btn-slogan {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.btn-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover .btn-effect {
    left: 100%;
}

/* ========= نتایج رأی‌گیری ========= */
.vote-results {
    background: rgba(248, 250, 252, 0.9);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.total-votes-badge {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-medium);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.vote-bars {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.vote-bar-container {
    background: white;
    padding: 25px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
}

.team-vote-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.team-vote-header .team-mini-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 10px;
}

.team-vote-name {
    font-size: 1.1rem;
    font-weight: 700;
    flex: 1;
}

.vote-count-badge {
    background: #f1f5f9;
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: var(--radius-small);
    font-size: 0.9rem;
    font-weight: 600;
}

.vote-bar-wrapper {
    position: relative;
    height: 20px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.vote-bar {
    height: 100%;
    border-radius: 10px;
    position: relative;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.vote-bar-esteghlal {
    background: var(--esteghlal-gradient);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.vote-bar-persepolis {
    background: var(--persepolis-gradient);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.bar-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: barShine 2s ease-in-out infinite;
}

.fun-stats {
    margin-top: 30px;
    text-align: center;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.stat-item i {
    color: #ef4444;
    font-size: 1.2rem;
}

.winning-team {
    color: var(--text-primary);
    font-weight: 700;
}

/* ========= بخش اشتراک‌گذاری ========= */
.share-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: var(--radius-large);
    padding: 40px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.share-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
    animation: float 8s ease-in-out infinite;
}

.share-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.share-subtitle {
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn-share {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-medium);
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.btn-telegram {
    background: linear-gradient(135deg, #0088cc, #006699);
}

.btn-copy {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.btn-share:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ========= بخش آمار ========= */
.stats-section {
    margin-bottom: 40px;
}

.stats-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-large);
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--esteghlal-primary), #ffd700, var(--persepolis-primary));
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========= بخش نظرات ========= */
.comments-section {
    margin-top: 50px;
}

.section-divider {
    display: flex;
    align-items: center;
    margin: 40px 0;
    text-align: center;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.divider-text {
    margin: 0 20px;
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.comment-form {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.comment-form-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-label i {
    color: var(--esteghlal-primary);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-medium);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafbfc;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--esteghlal-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.btn-submit-comment {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    min-width: 180px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    margin-top: 20px;
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: auto;
}

.btn-submit-comment:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-submit-comment:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-submit-comment i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-submit-comment:hover i {
    transform: translateX(5px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-submit-comment:hover .btn-shine {
    left: 100%;
}

/* ========= لیست نظرات ========= */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.comment-item:hover {
    box-shadow: var(--shadow-medium);
}

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

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: #f1f5f9;
}

.author-name {
    font-weight: 700;
    color: var(--text-primary);
}

.author-team {
    padding: 4px 12px;
    border-radius: var(--radius-small);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.esteghlal-badge {
    background: var(--esteghlal-gradient);
}

.persepolis-badge {
    background: var(--persepolis-gradient);
}

.comment-date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.comment-content {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
}

.comment-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.btn-like, .btn-reply {
    background: white;
    border: 1px solid var(--border-light);
    padding: 6px 12px;
    border-radius: var(--radius-small);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Vazirmatn', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-like:hover, .btn-reply:hover {
    background: var(--esteghlal-light);
    border-color: var(--esteghlal-primary);
    color: var(--esteghlal-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.btn-like.liked {
    background: var(--persepolis-light);
    border-color: var(--persepolis-primary);
    color: var(--persepolis-primary);
    animation: likeAnimation 0.3s ease;
}

.btn-like i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-like:hover i {
    transform: scale(1.2);
}

.btn-like.liked i {
    animation: heartBeat 0.6s ease;
}

.btn-reply i {
    font-size: 0.9rem;
}

/* انیمیشن لایک */
@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* لایک بر اساس تیم نظردهنده */
.comment-item[data-team="esteghlal"] .btn-like.liked {
    background: var(--esteghlal-light);
    border-color: var(--esteghlal-primary);
    color: var(--esteghlal-primary);
}

.comment-item[data-team="persepolis"] .btn-like.liked {
    background: var(--persepolis-light);
    border-color: var(--persepolis-primary);
    color: var(--persepolis-primary);
}

.comment-item[data-team="other"] .btn-like.liked {
    background: rgba(107, 114, 128, 0.1);
    border-color: #6b7280;
    color: #6b7280;
}

/* ========= ذرات شناور ========= */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 102, 204, 0.3);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    background: rgba(0, 102, 204, 0.3);
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: -3s;
    background: rgba(220, 38, 38, 0.3);
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: -6s;
    background: rgba(255, 215, 0, 0.3);
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: -9s;
    background: rgba(0, 102, 204, 0.3);
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: -12s;
    background: rgba(220, 38, 38, 0.3);
}

/* ========= انیمیشن‌ها ========= */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes teamFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes vsRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes lightning {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes barShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ========= ریسپانسیو ========= */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .hero-section {
        min-height: auto;
        height: auto;
        padding: 30px 0;
    }
    
    .hero-content {
        padding: 15px;
    }
    
    .main-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .teams-showcase {
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
        margin-top: 25px;
        max-width: 100%;
    }
    
    .team-side {
        min-width: unset;
        width: 45%;
        max-width: none;
        margin: 0;
        padding: 15px;
        order: 1;
        border-radius: 15px;
    }
    
    /* استقلال در سمت راست */
    .esteghlal-side {
        order: 1;
    }
    
    /* پرسپولیس در سمت چپ */
    .persepolis-side {
        order: 2;
    }
    
    /* مخفی کردن قسمت VS در موبایل */
    .vs-section {
        display: none;
    }
    
    .team-logo {
        width: 90px;
        height: 90px;
        margin-bottom: 15px;
    }
    
    .team-img {
        width: 70px;
    }
    
    .team-name {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }
    
    .team-subtitle {
        font-size: 0.9rem;
    }
    
    .survey-container {
        padding: 20px 15px;
        margin-top: 20px;
        border-radius: 20px;
    }
    
    .vote-results {
        border-radius: 15px;
        padding: 20px;
    }
    
    .comment-form {
        border-radius: 15px;
        padding: 20px;
    }
    
    .comment-item {
        border-radius: 12px;
        padding: 15px;
    }
    
    .vote-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .btn-content {
        padding: 20px;
        justify-content: flex-start;
        text-align: right;
    }
    
    .btn-icon {
        width: 50px;
        height: 50px;
    }
    
    .btn-icon img {
        width: 35px;
        height: 35px;
    }
    
    .share-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .btn-share {
        padding: 15px 20px;
        font-size: 16px;
        width: 100%;
        border-radius: 15px;
        justify-content: center;
        min-height: 55px;
    }
    
    .btn-submit-comment {
        padding: 16px 20px;
        font-size: 15px;
        min-height: 50px;
        border-radius: 18px;
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
        margin: 20px 0 0 0;
        z-index: auto;
        box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-control {
        padding: 16px;
        font-size: 16px;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: auto;
        height: auto;
        padding: 20px 0;
    }
    
    .main-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .title-text {
        font-size: 1.6rem;
    }
    
    .teams-showcase {
        flex-direction: row;
        justify-content: space-between;
        gap: 15px;
        margin-top: 20px;
    }
    
    .team-side {
        width: 45%;
        max-width: none;
        padding: 12px;
        border-radius: 12px;
    }
    
    /* استقلال در سمت راست */
    .esteghlal-side {
        order: 1;
    }
    
    /* پرسپولیس در سمت چپ */
    .persepolis-side {
        order: 2;
    }
    
    /* مخفی کردن قسمت VS در موبایل */
    .vs-section {
        display: none;
    }
    
    .team-logo {
        width: 75px;
        height: 75px;
        margin-bottom: 10px;
    }
    
    .team-img {
        width: 55px;
    }
    
    .team-name {
        font-size: 1.2rem;
        margin-bottom: 3px;
    }
    
    .team-subtitle {
        font-size: 0.8rem;
    }
    
    .survey-container {
        padding: 15px 10px;
        margin-top: 15px;
        border-radius: 18px;
    }
    
    .vote-results {
        border-radius: 12px;
        padding: 15px;
    }
    
    .comment-form {
        border-radius: 12px;
        padding: 15px;
        padding-bottom: 80px;
    }
    
    .comment-item {
        border-radius: 10px;
        padding: 12px;
    }
    
    .survey-question h2 {
        font-size: 1.3rem;
    }
    
    .question-subtitle {
        font-size: 0.9rem;
    }
    
    .btn-team-name {
        font-size: 1rem;
    }
    
    .btn-slogan {
        font-size: 0.8rem;
    }
    
    .btn-submit-comment {
        padding: 16px 20px;
        font-size: 15px;
        min-height: 50px;
        border-radius: 18px;
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
        margin: 20px 0 0 0;
        z-index: auto;
        box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
    }
    
    .btn-submit-comment i {
        font-size: 18px;
    }
}

/* ========= پاسخ‌ها و فرم‌های پاسخ ========= */
.replies {
    margin-top: 20px;
    padding-right: 20px;
    border-right: 3px solid var(--border-light);
}

.comment-item.reply {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid var(--border-light);
    margin-bottom: 15px;
    position: relative;
}

.comment-item.reply::before {
    content: '';
    position: absolute;
    top: 0;
    right: -3px;
    width: 3px;
    height: 100%;
    background: var(--esteghlal-primary);
}

.comment-item.reply[data-team="persepolis"]::before {
    background: var(--persepolis-primary);
}

.comment-item.reply[data-team="other"]::before {
    background: #6b7280;
}

.reply-form {
    margin-top: 15px;
    padding: 15px;
    background: rgba(248, 250, 252, 0.5);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-medium);
    backdrop-filter: blur(10px);
}

.reply-form-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reply-form .form-group {
    margin-bottom: 0;
}

.reply-form input[type="text"],
.reply-form select,
.reply-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-small);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.85rem;
    background: white;
    transition: all 0.3s ease;
}

.reply-form input[type="text"]:focus,
.reply-form select:focus,
.reply-form textarea:focus {
    outline: none;
    border-color: var(--esteghlal-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.reply-form textarea {
    min-height: 80px;
    resize: vertical;
}

.reply-form button {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-small);
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.reply-form button[type="button"]:first-of-type {
    background: var(--esteghlal-gradient);
    color: white;
}

.reply-form button[type="button"]:first-of-type:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.reply-form button[type="button"]:last-of-type {
    background: var(--border-light);
    color: var(--text-secondary);
    margin-right: 10px;
}

.reply-form button[type="button"]:last-of-type:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.no-comments {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
}

.no-comments p {
    margin: 0;
    position: relative;
}

.no-comments p::before {
    content: '⚽';
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

/* Badge های وضعیت نظرات */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    text-decoration: none;
}

.bg-warning {
    background-color: #f59e0b !important;
    color: #fff !important;
}

.bg-danger {
    background-color: #ef4444 !important;
    color: #fff !important;
}

.ms-2 {
    margin-right: 0.5rem !important;
}

/* انیمیشن برای badge ها */
.badge {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

/* ========= کلاس‌های اعداد فارسی ========= */
.persian-numbers, 
.vote-percent, 
.total-votes, 
.vote-count-badge,
.stats-number {
    font-family: 'IranSansNumbers', 'IRANSans', sans-serif;
    font-feature-settings: "tnum";
}

/* ========= دکمه ثابت واتساپ ========= */
.whatsapp-fixed-btn {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 99999 !important;
    animation: pulseScale 2s infinite;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.whatsapp-btn:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.whatsapp-btn i {
    font-size: 18px;
    animation: heartBeat 1.5s ease infinite;
}

.whatsapp-btn span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.whatsapp-btn:hover::before {
    left: 100%;
}

@keyframes pulseScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .whatsapp-fixed-btn {
        bottom: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .whatsapp-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .whatsapp-btn i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .whatsapp-fixed-btn {
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .whatsapp-btn {
        padding: 8px 14px;
        font-size: 12px;
        gap: 6px;
    }
    
    .whatsapp-btn i {
        font-size: 14px;
    }
} 