/* CSS Variables - только для контента, НЕ для header */
/* Header использует стили из /assets/css/style.css */
:root {
    --primary-color: #3e6ae1;
    --primary-hover: #2c5bd9;
    --background-color: #1a1a1a;
    --surface-color: #2a2a2a;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #3a3a3a;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
}

/* Light Theme */
[data-theme="light"] {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --background-color: #ffffff;
    --surface-color: #f5f5f5;
    --text-color: #212529;
    --text-secondary: #6c757d;
    --border-color: #e0e0e0;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
}

/* Защита header от переопределения локальными стилями */
.main-header,
.main-header *,
.nav-container,
.nav-controls,
.blog-button,
.cutter-button,
.theme-toggle,
.language-toggle {
    /* Все стили header определены в /assets/css/style.css */
    /* Локальные стили НЕ должны переопределять header */
}

[dir="rtl"] {
    text-align: right;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Стили body - только для контента, НЕ для header */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 70px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Защита header от переопределения стилями body */
body .main-header {
    /* Все стили header определены в /assets/css/style.css с !important */
    /* Локальные стили body НЕ должны влиять на header */
}

.main-content {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container - только для контента, НЕ для header */
main .container,
.main-content .container,
.container:not(.nav-container) {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Защита nav-container от переопределения */
.main-header .container.nav-container {
    /* Стили определены в /assets/css/style.css */
    max-width: 100% !important;
    padding: 0 1rem !important;
}


main {
    flex: 1;
}

.upload-section {
    margin-bottom: 2rem;
}

.upload-container {
    background-color: var(--surface-color);
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-container:hover, .upload-container.dragover {
    border-color: var(--primary-color);
    background-color: rgba(62, 106, 225, 0.05);
}

.upload-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.support-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 1.5rem;
}

.btn {
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
}

.control-btn {
    background-color: var(--surface-color);
    color: var(--text-color);
    padding: 0.5rem;
    margin-right: 0.5rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background-color: var(--surface-color);
}

.waveform-section {
    background-color: var(--surface-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.waveform-container {
    margin-bottom: 1.5rem;
}

#waveform {
    width: 100%;
    height: 100px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.time-info {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.controls {
    margin-bottom: 1.5rem;
}

.processing-container {
    display: flex;
    align-items: center;
}

#processing-indicator {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    color: var(--text-secondary);
}

#processing-indicator i {
    margin-right: 0.5rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.loading-wave {
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 30px 0;
}

.loading-wave i {
    margin-right: 10px;
}

/* RTL Support */

[dir="rtl"] .control-btn {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .upload-container {
        padding: 2rem 1rem;
    }
}

/* Instructions Section - Compact */
.instructions-section {
    background: linear-gradient(135deg, var(--surface-color) 0%, rgba(62, 106, 225, 0.05) 100%);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.instructions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
}

.instructions-content {
    position: relative;
    z-index: 1;
}

.instructions-content p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    text-align: left;
    line-height: 1.4;
}

.instructions-content ol {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.instructions-content li {
    counter-increment: step-counter;
    position: relative;
    padding: 0.6rem 0.6rem 0.6rem 2.25rem;
    background: rgba(62, 106, 225, 0.06);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.2s ease;
    line-height: 1.5;
    color: var(--text-color);
    font-size: 0.85rem;
}

.instructions-content li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.4rem;
    height: 1.4rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 1px 4px rgba(62, 106, 225, 0.3);
}

.instructions-content li:hover {
    background: rgba(62, 106, 225, 0.1);
    border-left-color: var(--primary-hover);
}

.instructions-content li strong {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9em;
    display: inline-block;
    margin-right: 0.35rem;
}

/* FAQ Section */
.faq-section {
    margin: 3rem 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 600;
}

.faq-container {
    /* max-width: 800px; */
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    /* border-radius: 8px; */
    overflow: hidden;
}

.faq-question {
    background-color: var(--surface-color);
    padding: 0.85rem 0.85rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: rgba(62, 106, 225, 0.05);
}

.faq-question h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    flex: 1;
    padding-right: 1rem;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.faq-question i.fa-chevron-up {
    transform: rotate(180deg);
}

.faq-answer {
    background-color: var(--surface-color);
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    margin: 1rem 0;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .instructions-section {
        padding: 0.875rem 1rem;
    }
    
    .instructions-content p {
        font-size: 0.9rem;
        margin-bottom: 0.65rem;
    }
    
    .instructions-content ol {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    
    .instructions-content li {
        padding: 0.55rem 0.55rem 0.55rem 2rem;
        font-size: 0.8rem;
    }
    
    .instructions-content li::before {
        width: 1.3rem;
        height: 1.3rem;
        font-size: 0.7rem;
        left: 0.5rem;
    }
    
    .faq-section {
        padding: 1.5rem 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}

/* RTL languages support */
[dir="rtl"] .instructions-content ol {
    padding-right: 0;
    padding-left: 0;
}

[dir="rtl"] .instructions-content li {
    padding: 1.5rem 4.5rem 1.5rem 1.5rem;
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

[dir="rtl"] .instructions-content li::before {
    left: auto;
    right: 1.25rem;
}

[dir="rtl"] .instructions-content li:hover {
    transform: translateX(-4px);
}

[dir="rtl"] .faq-question {
    flex-direction: row-reverse;
}

/* Page Header - стили из ringchime.css */
.page-header {
    text-align: center;
    margin: 0.5rem 0 1.5rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color, #e0e0e0);
    font-weight: 700;
    line-height: 1.2;
}

.page-header h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted, #b0b0b0);
    font-weight: 400;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .page-header {
        margin: 0.25rem 0 1rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .page-header h2 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
}

/* Hub Header Styles */
.hub-header {
    text-align: center;
    margin: 1rem 0 2rem;
}

.hub-header h1 {
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin: 0 0 1.5rem 0 !important;
    color: var(--text-color) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.hub-header .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hub-actions {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .hub-header h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hub-header .lead {
        font-size: 1.1rem;
    }
}

/* ============================================
   Header and Language Menu styles are now in /assets/css/style.css
   Footer styles below
   ============================================ */

/* Footer Styles */
.main-footer {
    background-color: var(--surface-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.footer-section h3 {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.footer-bottom p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Main Content adjustment for fixed header */
.main-content {
    min-height: calc(100vh - 70px);
}

/* Responsive adjustments - Header styles are in /assets/css/style.css */
@media (max-width: 768px) {
    /* Общие стили для мобильных устройств */
    .container {
        padding: 0 1rem;
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
} 