/*
Theme Name: Teza
Theme URI: https://teza.life/
Author: Teza Media
Description: Кастомна, ультрашвидка, адаптивна та AI-powered WordPress тема для сучасного українського бізнес-видання. Мінімалістичний журнальний стиль (Dark Mode).
Version: 1.0.2
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: teza
*/

:root {
    --primary: #000000;
    --primary-rgb: 0, 0, 0;
    --secondary: #1a1a1a;
    --accent: #2563eb;
    --accent-light: #3b82f6;
    --text-primary: #0a0a0a;
    --text-secondary: #525252;
    --text-muted: #737373;
    --text-light: #a3a3a3;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --border: #e5e5e5;
    --border-light: #f0f0f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --blur: blur(16px);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-primary);
    font-weight: 400;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p, li {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    padding: 0;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

/* Navigation */
.main-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.current {
    color: var(--primary);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.hero-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

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

/* Featured Section */
.featured-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.featured-main {
    background: var(--bg-primary);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
}

.featured-main:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border);
}

.featured-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-main:hover .featured-image img {
    transform: scale(1.02);
}

.featured-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--blur);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.featured-content {
    padding: 2rem;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.featured-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.featured-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.featured-title a:hover {
    color: var(--accent);
}

.featured-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.read-more-link:hover {
    gap: 0.75rem;
    color: var(--accent);
}

/* Sidebar Posts */
.sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-post {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
}

.sidebar-post:hover {
    border-color: var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.sidebar-post-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.sidebar-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.sidebar-post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-post-title a:hover {
    color: var(--accent);
}

/* Content Sections */
.content-section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.post-thumbnail {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.02);
}

.post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.post-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex: 1;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--accent);
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.02), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Stats Section */
.stats-section {
    background: var(--bg-secondary);
    padding: 6rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--bg-primary);
    padding: 6rem 0;
    border-top: 1px solid var(--border-light);
}

.newsletter-section .section-title {
    color: var(--text-primary);
}

.newsletter-section .section-subtitle {
    color: var(--text-secondary);
}

.newsletter-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.newsletter-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary);
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

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

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .container,
    .container-wide {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .hero-section {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .posts-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container,
    .container-wide {
        padding: 0 16px;
    }
    
    .featured-content,
    .post-content,
    .sidebar-post {
        padding: 1.25rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Force light theme - remove dark mode detection */
/* Removed @media (prefers-color-scheme: dark) block to prevent auto dark mode */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Comments Section Styles */
.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

.comments-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comments-title::before {
    content: '';
    width: 4px;
    height: 32px;
    background: var(--primary);
    border-radius: 2px;
}

/* Comments List */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.comment:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.comment-body {
    padding: 2rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author .avatar {
    border-radius: 50%;
    border: 2px solid var(--border-light);
    transition: var(--transition);
}

.comment:hover .comment-author .avatar {
    border-color: var(--accent);
}

.comment-metadata {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    text-decoration: none;
}

.comment-metadata time {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.comment-metadata .comment-edit-link {
    color: var(--accent);
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 500;
}

.comment-content {
    margin-top: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.comment-content p {
    margin-bottom: 1rem;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: 1rem;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.comment-reply-link:hover {
    background: var(--accent);
    color: white;
}

/* Nested Comments */
.children {
    list-style: none;
    margin-top: 1.5rem;
    padding-left: 2rem;
    border-left: 2px solid var(--border-light);
}

.children .comment {
    background: var(--bg-secondary);
    border-color: var(--border-light);
}

.children .comment-body {
    padding: 1.5rem;
}

/* Comment Form */
.comment-respond {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 3rem;
    border: 1px solid var(--border-light);
}

.comment-reply-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comment-reply-title::before {
    content: '';
    width: 3px;
    height: 24px;
    background: var(--accent);
    border-radius: 2px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: flex;
    flex-direction: column;
}

.comment-form label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-primary);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
    font-family: var(--font-sans);
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.comment-form input[type="submit"] {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-form input[type="submit"]:hover {
    background: var(--secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.comment-subscription-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.comment-subscription-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

/* Comments Navigation */
.comment-navigation {
    margin: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-navigation .nav-links {
    display: flex;
    gap: 1rem;
}

.comment-navigation a {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.comment-navigation a:hover {
    background: var(--primary);
    color: white;
}

/* No Comments Message */
.no-comments {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    color: var(--text-muted);
}

.no-comments::before {
    content: '💬';
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Moderation Notice */
.comment-awaiting-moderation {
    background: rgba(251, 191, 36, 0.1);
    color: #92400e;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 1rem;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .comment-form-row {
        grid-template-columns: 1fr;
    }
    
    .comment-body {
        padding: 1.5rem;
    }
    
    .comment-respond {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .children {
        padding-left: 1rem;
    }
    
    .form-submit {
        flex-direction: column;
        align-items: stretch;
    }
    
    .comment-form input[type="submit"] {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .comments-area {
        margin-top: 2rem;
        padding-top: 2rem;
    }
    
    .comment-body {
        padding: 1rem;
    }
    
    .comment-respond {
        padding: 1rem;
    }
    
    .children {
        padding-left: 0.5rem;
    }
}

/* Catalog Specific */
.post-card .read-more-link[target="_blank"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-top: 0.75rem;
    color: var(--accent);
}

.post-card .read-more-link[target="_blank"]:hover {
    background: var(--accent);
    color: white;
}

/* Admin bar button */
#add-catalog {
    background: var(--accent) !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
}

/* Пагінація */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.pagination a:hover, .pagination .current {
    background: var(--accent);
    color: white;
}