/* SEO стили для Time Calculator */

/* SEO контент на главной странице */
.seo-intro {
    background: #f8f9fa;
    padding: 30px;
    margin: 40px 0;
    border-left: 4px solid #3498db;
    border-radius: 0 8px 8px 0;
}

.seo-intro h2 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 20px;
}

.popular-questions ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.popular-questions li {
    padding: 10px 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #495057;
}

.popular-questions li:before {
    content: "❓ ";
    color: #3498db;
}

/* SEO контент на страницах */
.seo-description {
    font-size: 1rem;
    color: #6c757d;
    margin-top: 15px;
    font-style: italic;
}

.seo-content {
    background: white;
    border: 1px solid #e9ecef;
    padding: 30px;
    margin: 40px 0;
    border-radius: 8px;
}

.seo-content h2 {
    font-size: 1.6rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.seo-content h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 25px 0 15px 0;
}

.seo-content ol {
    padding-left: 20px;
    margin-bottom: 25px;
}

.seo-content ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.use-case {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

.use-case h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.use-case p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* SEO секция с FAQ */
.seo-section {
    background: white;
    border: 1px solid #e9ecef;
    padding: 30px;
    margin: 40px 0;
    border-radius: 8px;
}

.seo-section h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 25px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
}

.faq-section {
    margin-top: 20px;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f3f4;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.faq-answer {
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.6;
    margin: 0;
}

/* SEO таблица */
.seo-table-wrapper {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    overflow: hidden;
}

.seo-table-title {
    font-size: 1.6rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.seo-table-description {
    font-size: 1rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.seo-calculation-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.seo-calculation-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border: 1px solid #dee2e6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.seo-calculation-table td {
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    vertical-align: top;
}

.seo-calculation-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.seo-calculation-table tbody tr:hover {
    background: #e3f2fd;
}

.question-cell {
    font-weight: 500;
    color: #2c3e50;
    width: 50%;
}

.answer-cell {
    color: #495057;
    width: 50%;
}

.answer-cell strong {
    color: #2c3e50;
    font-size: 1rem;
}

.time-detail {
    color: #3498db;
    font-weight: 600;
    font-size: 0.95rem;
}

.day-detail {
    color: #7f8c8d;
    font-size: 0.85rem;
    text-transform: capitalize;
}

.quarter-detail,
.day-year-detail {
    color: #95a5a6;
    font-size: 0.8rem;
}

/* SEO футер таблицы */
.seo-table-footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #ecf0f1;
}

.seo-tips {
    margin-bottom: 25px;
}

.seo-tips h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.seo-tips p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #495057;
}

.seo-tips strong {
    color: #2c3e50;
}

.seo-benefits h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.seo-benefits ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.seo-benefits li {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #495057;
    border-left: 3px solid #28a745;
}

/* Загрузка таблицы */
.table-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.table-loading::after {
    content: "⏳ Загрузка таблицы расчетов...";
    font-size: 1rem;
}

/* Адаптивность для SEO элементов */
@media (max-width: 768px) {
    .seo-intro,
    .seo-content,
    .seo-section,
    .seo-table-wrapper {
        padding: 20px 15px;
        margin: 30px 0;
    }
    
    .popular-questions ul {
        grid-template-columns: 1fr;
    }
    
    .use-cases {
        grid-template-columns: 1fr;
    }
    
    .seo-calculation-table {
        font-size: 0.8rem;
    }
    
    .seo-calculation-table th,
    .seo-calculation-table td {
        padding: 8px 10px;
    }
    
    .question-cell,
    .answer-cell {
        width: auto;
    }
    
    .seo-table-title {
        font-size: 1.3rem;
    }
    
    .seo-benefits ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .seo-calculation-table {
        font-size: 0.75rem;
    }
    
    .seo-calculation-table th,
    .seo-calculation-table td {
        padding: 6px 8px;
    }
    
    .answer-cell {
        font-size: 0.8rem;
    }
    
    .answer-cell strong {
        font-size: 0.85rem;
    }
}

/* Печать */
@media print {
    .seo-calculation-table {
        border-collapse: collapse;
        width: 100%;
    }
    
    .seo-calculation-table th,
    .seo-calculation-table td {
        border: 1px solid #000;
        padding: 8px;
    }
    
    .seo-table-wrapper {
        break-inside: avoid;
    }
}


/* Дополнительные стили для онлайн часов */
/* Добавьте в assets/seo-styles.css или создайте отдельный файл */

/* Основные стили для онлайн часов (уже в PHP, но для справки) */
.online-clock {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.95);
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 15px 20px;
    font-family: "Courier New", monospace;
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 180px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.online-clock:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.online-clock-time {
    font-size: 20px;
    color: #3498db;
    margin-bottom: 5px;
    font-weight: bold;
}

.online-clock-date {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 3px;
}

.online-clock-timezone {
    font-size: 10px;
    color: #95a5a6;
    margin-top: 3px;
}

/* Большие часы на главной странице */
.current-time-display {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.current-time-display h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
}

.big-clock {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 25px;
    backdrop-filter: blur(10px);
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.2);
}

.big-time {
    font-size: 3.5rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.big-date {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Анимации для часов */
@keyframes clockPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.clock-pulse {
    animation: clockPulse 0.3s ease-in-out;
}

/* Кнопка скрытия часов */
.clock-toggle {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    z-index: 1001;
    transition: all 0.2s ease;
    border: 2px solid white;
}

.clock-toggle:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Кнопка восстановления часов */
#clock-restore-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
    border: 3px solid white;
}

#clock-restore-btn:hover {
    background: #2980b9;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

/* Тематические варианты часов */
.online-clock.theme-dark {
    background: rgba(44, 62, 80, 0.95);
    border-color: #34495e;
    color: #ecf0f1;
}

.online-clock.theme-dark .online-clock-time {
    color: #3498db;
}

.online-clock.theme-minimal {
    background: rgba(255,255,255,0.98);
    border: 1px solid #bdc3c7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Адаптивность */
@media (max-width: 768px) {
    .online-clock {
        position: static;
        margin: 20px auto;
        width: fit-content;
        border-radius: 8px;
        padding: 12px 16px;
    }
    
    .online-clock-time {
        font-size: 18px;
    }
    
    .big-time {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .big-date {
        font-size: 1.1rem;
    }
    
    .current-time-display {
        margin: 20px 0;
        padding: 20px;
    }
    
    .big-clock {
        padding: 20px;
    }
    
    #clock-restore-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .online-clock {
        font-size: 14px;
        padding: 10px 14px;
        min-width: 160px;
    }
    
    .online-clock-time {
        font-size: 16px;
    }
    
    .big-time {
        font-size: 2rem;
    }
    
    .big-date {
        font-size: 1rem;
    }
    
    .current-time-display h2 {
        font-size: 1.2rem;
    }
}

/* Эффекты при смене времени */
.time-change-effect {
    animation: timeChangeGlow 0.5s ease-in-out;
}

@keyframes timeChangeGlow {
    0% { 
        text-shadow: 0 0 5px #3498db;
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 15px #3498db, 0 0 25px #3498db;
        transform: scale(1.02);
    }
    100% { 
        text-shadow: 0 0 5px #3498db;
        transform: scale(1);
    }
}

/* Цифровой стиль для часов */
.digital-style .online-clock-time,
.digital-style .big-time {
    font-family: 'Orbitron', 'Courier New', monospace;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Неоновый эффект для темных тем */
.neon-effect .online-clock-time {
    color: #00ff00;
    text-shadow: 
        0 0 5px #00ff00,
        0 0 10px #00ff00,
        0 0 15px #00ff00;
}

/* Состояния часов */
.clock-loading {
    opacity: 0.5;
}

.clock-loading .online-clock-time::after {
    content: " ⏳";
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Специальные эффекты */
.midnight-effect {
    animation: midnightGlow 2s ease-in-out;
}

@keyframes midnightGlow {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    50% { 
        box-shadow: 0 4px 25px rgba(52, 152, 219, 0.5);
    }
}

.new-day-effect {
    animation: newDayPulse 1.5s ease-in-out;
}

@keyframes newDayPulse {
    0%, 100% { 
        transform: scale(1);
        background: rgba(255,255,255,0.95);
    }
    50% { 
        transform: scale(1.05);
        background: rgba(46, 204, 113, 0.95);
    }
}

/* Доступность */
@media (prefers-reduced-motion: reduce) {
    .online-clock,
    .big-clock,
    .clock-toggle,
    #clock-restore-btn {
        transition: none;
        animation: none;
    }
    
    .time-change-effect,
    .clock-pulse,
    .midnight-effect,
    .new-day-effect {
        animation: none;
    }
}

/* Высокий контраст */
@media (prefers-contrast: high) {
    .online-clock {
        border-width: 3px;
        background: white;
    }
    
    .online-clock-time {
        color: #000;
        font-weight: 900;
    }
}

/* Темная тема системы */
@media (prefers-color-scheme: dark) {
    .online-clock {
        background: rgba(44, 62, 80, 0.95);
        border-color: #34495e;
        color: #ecf0f1;
    }
    
    .online-clock-time {
        color: #74b9ff;
    }
    
    .online-clock-date,
    .online-clock-timezone {
        color: #b2bec3;
    }
}