/* style.css - ورژن ۲.۳ - تاریخ: ۱۴۰۳/۰۹/۱۵ */
/* استایل کامل برنامه طراحی لوگو حرفه‌ای */

:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #7209b7;
    --success: #4cc9f0;
    --warning: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7ff;
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* استایل هدر */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
    padding: 2rem 0;
    position: relative;
}

.header-content {
    position: relative;
}

.domain-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.api-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.api-badge.connected {
    background: rgba(76, 201, 240, 0.3);
}

.api-badge.disconnected {
    background: rgba(247, 37, 133, 0.3);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* استایل main */
main {
    flex: 1;
    padding: 20px;
}

#app {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* استایل پیشرفت */
.progress-container {
    padding: 1.5rem;
    background: var(--light);
    border-bottom: 1px solid #e9ecef;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* استایل سوالات */
.question-card {
    padding: 2rem;
}

.question-header {
    text-align: center;
    margin-bottom: 2rem;
}

.question-header h2 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.help-text {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* استایل گزینه‌ها */
.options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.option-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.option-btn:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.15);
}

.option-btn.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0f4ff, #e6eeff);
    transform: translateY(-2px);
}

.option-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.8rem;
}

.option-text {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

/* دکمه ادامه */
.continue-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 40px;
    font-size: 1.1rem;
    cursor: pointer;
    margin: 2rem auto 0;
    display: block;
    transition: all 0.3s ease;
}

.continue-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.continue-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* استایل خلاصه */
.summary-card {
    padding: 2rem;
}

.summary-header {
    text-align: center;
    margin-bottom: 2rem;
}

.summary-header h2 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.summary-header p {
    color: #666;
}

.quality-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.selection-item {
    background: var(--light);
    border-radius: 10px;
    padding: 1.2rem;
    margin: 1rem 0;
    text-align: right;
    border-right: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.selection-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.selection-question {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.selection-answer {
    color: #555;
    font-size: 0.95rem;
}

.summary-actions {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* استایل دکمه‌ها */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-tertiary {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-tertiary:hover {
    background: #5a08a0;
    transform: translateY(-2px);
}

.btn-info {
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: #138496;
    transform: translateY(-2px);
}

/* استایل لودینگ */
.loading-container {
    text-align: center;
    padding: 3rem 2rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-details {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
    font-size: 0.95rem;
    color: #666;
}

/* استایل نتیجه */
.result-card {
    padding: 2rem;
    text-align: center;
}

.result-header h2 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.result-header p {
    color: #666;
    margin-bottom: 1rem;
}

/* استایل پیش‌نمایش لوگو */
.logo-preview {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border: 2px solid #dee2e6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.generated-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.generated-logo-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.generated-logo-image:hover {
    transform: scale(1.02);
}

.sample-logo {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.logo-shape {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* استایل جزئیات لوگو */
.logo-details {
    margin: 2rem 0;
    text-align: right;
    background: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
}

.logo-details h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    text-align: center;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    border-right: 3px solid var(--primary);
}

.detail-label {
    font-weight: 600;
    color: var(--secondary);
}

.detail-value {
    color: #555;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* استایل خطا */
.error-container {
    text-align: center;
    padding: 3rem 2rem;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.error-actions {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-help {
    text-align: right;
    background: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.error-help ul {
    margin: 0.8rem 0;
    padding-right: 1.5rem;
    list-style-type: none;
}

.error-help li {
    margin-bottom: 0.5rem;
    padding-right: 1.5rem;
    position: relative;
}

.error-help li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    right: 0;
}

/* استایل پیام موفقیت */
.success-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        top: -100px;
        opacity: 0;
    }
    to {
        top: 20px;
        opacity: 1;
    }
}

.success-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
}

/* استایل راهنما */
.api-guide {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem 0;
    text-align: right;
}

.api-guide h4 {
    color: #1565c0;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.guide-steps {
    margin-bottom: 2rem;
}

.step {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-right: 4px solid #2196f3;
}

.step h5 {
    color: #1976d2;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.step ol, .step ul {
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.step li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.step a {
    color: #1976d2;
    text-decoration: none;
}

.step a:hover {
    text-decoration: underline;
}

.color-guide {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 1rem;
}

.color-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: white;
    border-radius: 6px;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.color-item.blue .color-box { background: #4361ee; }
.color-item.green .color-box { background: #2ecc71; }
.color-item.warm .color-box { background: #e74c3c; }
.color-item.purple .color-box { background: #9b59b6; }

.guide-actions {
    text-align: center;
    margin-top: 2rem;
}

/* استایل فوتر */
footer {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .domain-badge, .api-badge {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        margin: 0.5rem auto;
        display: inline-block;
    }
    
    #app {
        margin: 1rem;
    }
    
    .question-card,
    .summary-card,
    .result-card {
        padding: 1.5rem;
    }
    
    .options-container {
        grid-template-columns: 1fr;
    }
    
    .option-btn {
        min-height: 80px;
        padding: 1rem;
    }
    
    .option-icon {
        font-size: 2rem;
    }
    
    .summary-actions,
    .result-actions,
    .error-actions,
    .guide-actions {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .logo-preview {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .sample-logo {
        width: 200px;
        height: 200px;
        font-size: 1.5rem;
    }
    
    .logo-shape {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 0;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .question-header h2 {
        font-size: 1.3rem;
    }
    
    .api-guide {
        padding: 1rem;
    }
    
    .step {
        padding: 1rem;
    }
}
/* استایل‌های بخش تماس */
.contact-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    margin: 2rem auto;
}

.contact-container h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.contact-info {
    text-align: right;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    margin: 0.5rem 0;
    background: var(--light);
    border-radius: 8px;
    border-right: 3px solid var(--primary);
}

.contact-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.contact-text {
    flex: 1;
    color: var(--dark);
    font-size: 0.95rem;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-success {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* استایل برای نمایش در موبایل */
@media (max-width: 768px) {
    .contact-actions {
        flex-direction: column;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-icon {
        width: auto;
    }
}