:root {
    --primary: #FF9EAA;
    --secondary: #87CEEB;
    --accent: #FFD166;
    --text: #2C3E50;
    --light: #FFFFFF;
    --gradient: linear-gradient(135deg, #FF9EAA 0%, #87CEEB 100%);
    --gradient-secondary: linear-gradient(135deg, #FFD166 0%, #FFB6C1 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر حرفه‌ای */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0.9;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 40px;
}

.hero-logo {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    border-radius: 40px;
    background: url('../images/game-icon.png') center/contain no-repeat;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 4px solid white;
}

.hero h1 {
    font-size: 4.5em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.8em;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* بخش‌های اصلی */
.section {
    padding: 100px 0;
    background: white;
}

.section-dark {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3em;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 1.2em;
    color: #666;
}

/* گالری تصاویر */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    aspect-ratio: 16/9;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ویژگی‌ها */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;
}

.feature-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--text);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* بخش دانلود */
.download-section {
    background: var(--gradient);
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.download-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.download-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
}

.download-content > p {
    font-size: 1.4em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.download-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 50px 0;
}

.download-option {
    background: rgba(255,255,255,0.95);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
}

.download-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.option-icon {
    font-size: 3em;
    margin-bottom: 20px;
    display: block;
}

.direct-download .option-icon {
    color: #FF6B6B;
}

.cafe-bazaar .option-icon {
    color: #43A047;
}

.download-option h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--text);
}

.download-option > p {
    color: #666;
    margin-bottom: 20px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--gradient);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    margin: 20px 0 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.cafe-bazaar-btn {
    background: linear-gradient(135deg, #43A047, #66BB6A);
}

.option-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: right;
}

.option-features li {
    padding: 8px 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-features li i {
    color: var(--primary);
    font-size: 0.9em;
}

/* QR Code Section */
.qr-section {
    margin-top: 50px;
    padding: 40px;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.qr-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.qr-code {
    width: 200px;
    height: 200px;
    border: 8px solid white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: white;
    padding: 10px;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.qr-info {
    flex: 1;
    min-width: 300px;
    text-align: right;
}

.qr-info h3 {
    color: var(--text);
    margin-bottom: 15px;
    font-size: 1.8em;
}

.qr-info p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.8;
}

.qr-steps {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.qr-steps li {
    padding: 12px 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1em;
    border-bottom: 1px solid #eee;
}

.qr-steps li:last-child {
    border-bottom: none;
}

.qr-steps li i {
    color: var(--primary);
    font-size: 1.3em;
    width: 30px;
    text-align: center;
}

.download-note {
    margin-top: 30px;
    opacity: 0.8;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
}

.download-note p {
    margin: 0;
}

/* فوتر */
footer {
    background: var(--text);
    color: white;
    padding: 60px 0 30px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.footer-content > p {
    opacity: 0.8;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 30px;
    opacity: 0.7;
    font-size: 0.9em;
}

/* انیمیشن‌ها */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.pulse {
    animation: pulse 3s ease-in-out infinite;
}

/* چت بات پشتیبانی */
#chatbot-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

#chatbot-toggle {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8em;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

#chatbot-toggle:hover {
    transform: scale(1.1);
}

#chatbot-window {
    position: absolute;
    bottom: 90px;
    left: 0;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

#chatbot-window.active {
    display: flex;
}

#chatbot-header {
    background: var(--gradient);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatbot-header h4 {
    margin: 0;
    font-size: 1.2em;
}

#chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px;
}

#chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.message.user {
    background: var(--gradient);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message.bot {
    background: #f1f3f5;
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.message.typing {
    background: #f1f3f5;
    color: #666;
    font-style: italic;
}

#chatbot-input {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

#chatbot-text {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s ease;
}

#chatbot-text:focus {
    border-color: var(--primary);
}

#chatbot-send {
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chatbot-send:hover {
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* رسپانسیو */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3em;
    }
    
    .hero p {
        font-size: 1.4em;
    }
    
    .section-header h2 {
        font-size: 2.5em;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-options {
        grid-template-columns: 1fr;
    }
    
    .qr-container {
        flex-direction: column;
        text-align: center;
    }
    
    .qr-info {
        text-align: center;
    }
    
    .qr-steps li {
        justify-content: center;
    }
    
    #chatbot-container {
        bottom: 20px;
        left: 20px;
    }
    
    #chatbot-window {
        width: 320px;
        height: 450px;
    }
    
    #chatbot-toggle {
        width: 60px;
        height: 60px;
        font-size: 1.5em;
    }
}

/* استایل‌های چت بات */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

#chatbot-toggle {
    width: 60px;
    height: 60px;
    background: #4f46e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#chatbot-toggle:hover {
    transform: scale(1.1);
    background: #4338ca;
}

#chatbot-window {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 350px;
    height: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    border: 1px solid #e2e8f0;
}

#chatbot-header {
    background: #4f46e5;
    color: white;
    padding: 15px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatbot-header h4 {
    margin: 0;
    font-size: 16px;
}

#chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

#chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8fafc;
}

.chatbot-user-message, .chatbot-bot-message {
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.chatbot-user-message {
    background: #4f46e5;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.chatbot-bot-message {
    background: white;
    color: #333;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 5px;
    margin-right: auto;
}

#chatbot-input {
    padding: 15px;
    border-top: 1px solid #e2e8f0;
    background: white;
    border-radius: 0 0 15px 15px;
    display: flex;
    gap: 10px;
}

#chatbot-text {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
}

#chatbot-text:focus {
    border-color: #4f46e5;
}

#chatbot-send {
    background: #4f46e5;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chatbot-send:hover {
    background: #4338ca;
}

#chatbot-send:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

#chatbot-container {
    display: none !important;
}