/*
Theme Name: Darya Tools Theme
Description: Тема для сайта с полезными техническими инструментами
Version: 1.0
Author: Darya Kumalatova
*/

/* Базовые стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
}

main {
    min-height: 70vh;
}

footer {
    background: #34495e;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Стили для навигации */
.main-nav {
    margin-top: 1rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Стили для заголовка сайта */
.site-title a {
    color: white;
    text-decoration: none;
}

.site-title a:hover {
    opacity: 0.8;
}

/* Стили для сетки инструментов */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.tool-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.tool-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.tool-link {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.tool-link:hover {
    background: #2980b9;
}

/* Стили для страниц */
.page-content, .post-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.page-title, .post-title {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.page-text, .post-text {
    line-height: 1.8;
}

.page-text p, .post-text p {
    margin-bottom: 1rem;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .page-content, .post-content {
        padding: 1.5rem;
    }
}

/* Стили для страниц инструментов */
.tool-page {
    max-width: 900px;
    margin: 0 auto;
}

.tool-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.tool-description {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.tool-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
}

.tool-interface {
    /* Стили для интерфейса инструмента */
}

/* Адаптивность для инструментов */
@media (max-width: 768px) {
    .tool-title {
        font-size: 2rem;
    }
    
    .tool-container {
        padding: 1.5rem;
    }
    
    .tool-description {
        padding: 1rem;
    }
}


/* Стили для инструмента транслитерации */
.transliteration-tool {
    width: 100%;
}

.tool-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.direction-switch {
    display: flex;
    gap: 1.5rem;
}

.direction-switch label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.direction-switch input[type="radio"] {
    margin: 0;
}

.text-areas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.input-section, .output-section {
    display: flex;
    flex-direction: column;
}

.input-section label, .output-section label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.input-section textarea, .output-section textarea {
    width: 100%;
    height: 300px;
    padding: 1rem;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.input-section textarea:focus, .output-section textarea:focus {
    outline: none;
    border-color: #3498db;
}

.output-section textarea {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.char-count {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
    text-align: right;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary {
    background: #3498db;
    color: white;
    margin-top: 1rem;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Адаптивность для инструмента */
@media (max-width: 768px) {
    .tool-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .direction-switch {
        justify-content: center;
    }
    
    .text-areas {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .input-section textarea, .output-section textarea {
        height: 200px;
    }
}

/* Стили для инструмента транслитерации */
.transliteration-tool {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Управление инструментом */
.tool-controls {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid #e9ecef;
}

.direction-control {
    display: flex;
    background: white;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.direction-btn {
    background: transparent;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: #495057;
}

.direction-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.direction-btn:hover:not(.active) {
    background: #e9ecef;
}

.standard-control {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 250px;
}

.standard-control label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.standard-control select {
    padding: 0.8rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.standard-control select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Текстовые области */
.text-areas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.input-section, .output-section {
    display: flex;
    flex-direction: column;
}

.textarea-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.textarea-header label {
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
}

.char-count {
    font-size: 0.9rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

.input-section textarea, .output-section textarea {
    width: 100%;
    height: 300px;
    padding: 1.2rem;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    resize: vertical;
    transition: all 0.3s;
    line-height: 1.5;
}

.input-section textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.output-section textarea {
    background: #f8f9fa;
    color: #495057;
    border-color: #adb5bd;
}

.output-section textarea:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Кнопки */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: #28a745;
    color: white;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

.btn-primary:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn.copied {
    background: #17a2b8 !important;
    transform: scale(0.95);
}

/* Информация о стандарте */
.standard-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    margin-top: 2rem;
}

.standard-info h3 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.standard-info p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .tool-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .direction-control {
        justify-content: center;
    }
    
    .standard-control {
        min-width: auto;
    }
    
    .text-areas {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .textarea-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .input-section textarea, .output-section textarea {
        height: 200px;
        font-size: 16px;
    }
    
    .tool-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .direction-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}