/* ==========================
   HerniTipy.cz - Hlavní styly
   Moderní tmavý herní design
   ========================== */

:root{
    --color-bg: #0d0d12;
    --color-bg-lighter: #14141c;
    --color-bg-card: #1a1a26;
    --color-bg-card-hover: #22222f;
    --color-primary: #7c3aed;
    --color-primary-light: #a78bfa;
    --color-primary-dark: #5b21b6;
    --color-accent: #06b6d4;
    --color-accent-light: #22d3ee;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-text: #e2e2ea;
    --color-text-muted: #8888a0;
    --color-text-light: #ffffff;
    --color-border: #2a2a3a;
    --color-border-light: #3a3a4c;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.15);
    --transition: 0.25s ease;
}

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

button{
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    padding: 0;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a{
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover{
    color: var(--color-accent-light);
}

img{
    max-width: 100%;
    height: auto;
}

/* Container */
.container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow{
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================
   HEADER
   ========================== */
.site-header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 18, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

.logo{
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-light);
    font-weight: 800;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.logo:hover{
    color: var(--color-text-light);
}

.logo-icon{
    font-size: 1.5rem;
    color: var(--color-primary);
}

.logo-dot{
    color: var(--color-primary);
}

.main-nav{
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list{
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-list > li{
    position: relative;
}

.nav-list > li > a{
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-list > li > a:hover,
.nav-list > li > a.active{
    color: var(--color-text-light);
    background: rgba(124, 58, 237, 0.12);
}

.nav-list > li > a i{
    font-size: 0.8rem;
}

/* Dropdown */
.has-dropdown:hover .dropdown{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown{
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-bg-lighter);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
    z-index: 100;
}

.dropdown li a{
    display: block;
    padding: 8px 16px;
    color: var(--color-text-muted);
    font-size: 0.88rem;
    transition: all var(--transition);
}

.dropdown li a:hover{
    color: var(--color-text-light);
    background: rgba(124, 58, 237, 0.1);
}

/* Header actions */
.header-actions{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.search-toggle{
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.search-toggle:hover{
    color: var(--color-text-light);
    background: rgba(124, 58, 237, 0.12);
}

/* Mobile menu toggle */
.mobile-menu-toggle{
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span{
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Search overlay */
.search-overlay{
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(13, 13, 18, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    z-index: 999;
    border-bottom: 1px solid var(--color-border);
}

.search-overlay.active{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form{
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.search-form input{
    flex: 1;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--transition);
}

.search-form input:focus{
    border-color: var(--color-primary);
}

.search-form button{
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    transition: background var(--transition);
}

.search-form button:hover{
    background: var(--color-primary-dark);
}

.search-close{
    background: transparent !important;
    color: var(--color-text-muted) !important;
}

.search-close:hover{
    color: var(--color-text-light) !important;
}

/* ==========================
   HERO
   ========================== */
.hero{
    margin-top: 64px;
    padding: 100px 0 80px;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.08) 0%, var(--color-bg) 100%);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.hero-title{
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-text-light);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-accent{
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle{
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================
   BUTTONS
   ========================== */
.btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover{
    background: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

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

/* ==========================
   SECTIONS
   ========================== */
.section{
    padding: 60px 0;
}

.section-alt{
    background: var(--color-bg-lighter);
}

.section-title{
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.site-main{
    margin-top: 64px;
}

.hero + .section,
.hero + .section-alt{
    margin-top: 0;
}

/* ==========================
   POST CARDS
   ========================== */
.post-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.post-card{
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

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

.post-card-image{
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--color-bg-lighter);
}

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

.post-card:hover .post-card-image img{
    transform: scale(1.05);
}

.post-card-placeholder{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-border-light);
}

.post-card-category{
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-primary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card-body{
    padding: 20px;
}

.post-card-title{
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.post-card-title a{
    color: var(--color-text-light);
}

.post-card-title a:hover{
    color: var(--color-primary-light);
}

.post-card-excerpt{
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta{
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.post-card-meta i{
    margin-right: 4px;
}

.post-card--hidden{
    display: none;
}

.section-posts-wrapper{
    position: relative;
}

.section-more-btn{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    transition: background var(--transition), transform var(--transition);
    z-index: 2;
}

.section-more-btn:hover{
    background: var(--color-primary-light);
    transform: translateY(-50%) scale(1.1);
}

.section-title--expandable{
    cursor: pointer;
    user-select: none;
    transition: color var(--transition);
}

.section-title--expandable:hover{
    color: var(--color-primary-light);
}

/* ==========================
   POST DETAIL
   ========================== */
.post-detail{
    padding: 40px 0 60px;
}

.post-header{
    margin-bottom: 32px;
}

.post-category-badge{
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.post-category-badge a{
    color: var(--color-primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-category-badge .separator{
    color: var(--color-text-muted);
    margin: 0 8px;
}

.post-header h1{
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-text-light);
    line-height: 1.25;
    margin-bottom: 12px;
}

.post-meta{
    display: flex;
    gap: 20px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.post-meta i{
    margin-right: 6px;
}

.post-image{
    margin: 0 0 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-image img{
    width: 100%;
    display: block;
}

.post-image-caption{
    padding: 8px 12px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    background: rgba(255,255,255,0.03);
    text-align: center;
    font-style: italic;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.post-content{
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}

.post-content h2{
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin: 32px 0 16px;
}

.post-content h3{
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin: 24px 0 12px;
}

.post-content p{
    margin-bottom: 16px;
}

.post-content img{
    border-radius: var(--radius-md);
    margin: 16px 0;
}

.post-content ul,
.post-content ol{
    margin: 0 0 16px 24px;
}

.post-content li{
    margin-bottom: 6px;
}

.post-content blockquote{
    border-left: 3px solid var(--color-primary);
    padding: 16px 20px;
    margin: 20px 0;
    background: var(--color-bg-lighter);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ==========================
   LIKES
   ========================== */
.post-likes{
    display: flex;
    gap: 12px;
    padding: 24px 0;
    margin: 32px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.like-btn{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition);
}

.like-btn:hover{
    border-color: var(--color-success);
    color: var(--color-success);
}

.like-btn.active{
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--color-success);
    color: var(--color-success);
}

.like-btn.dislike:hover{
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.like-btn.dislike.active{
    background: rgba(239, 68, 68, 0.12);
    border-color: var(--color-danger);
    color: var(--color-danger);
}

/* ==========================
   COMMENTS
   ========================== */
.comments-section{
    margin-top: 48px;
}

.comments-section h2{
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-form{
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}

.form-group{
    margin-bottom: 16px;
}

.form-group label{
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-group input,
.form-group textarea{
    width: 100%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus{
    border-color: var(--color-primary);
}

.comment-message{
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.comment-message.success{
    color: var(--color-success);
}

.comment-message.error{
    color: var(--color-danger);
}

.comments-list{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment{
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.comment-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author{
    color: var(--color-text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-author i{
    color: var(--color-primary);
}

.comment-date{
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

.comment-body{
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.comment-meta{
    display: flex;
    align-items: center;
    gap: 12px;
}

.reply-btn{
    color: var(--color-text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.reply-btn:hover{
    color: var(--color-primary);
    background: rgba(124, 58, 237, 0.08);
}

@keyframes replyHighlight{
    0%   { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); border-color: var(--color-border); }
    30%  { box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25); border-color: var(--color-primary); }
    100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); border-color: var(--color-border); }
}

.comment-form.reply-highlight{
    animation: replyHighlight 0.8s ease-out;
}

.comment-form-title{
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reply-context{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(124, 58, 237, 0.07);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.reply-cancel{
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px 4px;
    line-height: 1;
}

.reply-cancel:hover{
    color: var(--color-danger);
}

.comment-replies{
    margin-top: 12px;
    margin-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-reply{
    background: var(--color-bg);
    border-left: 3px solid var(--color-primary);
    padding: 14px 16px;
}

/* ==========================
   RELATED POSTS
   ========================== */
.related-posts{
    padding: 56px 0 40px;
    border-top: 1px solid var(--color-border);
    margin-top: 0;
}

.related-posts-title{
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
}

.related-posts-title i{
    color: var(--color-primary);
}

.related-posts-title a{
    color: var(--color-primary-light);
}

.related-posts-title a:hover{
    text-decoration: underline;
}

/* ==========================
   BREADCRUMBS
   ========================== */
.breadcrumbs{
    background: var(--color-bg-lighter);
    border-bottom: 1px solid var(--color-border);
    padding: 14px 0;
}

.breadcrumbs ol{
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
    font-size: 0.85rem;
}

.breadcrumbs li::after{
    content: '/';
    margin-left: 8px;
    color: var(--color-text-muted);
}

.breadcrumbs li:last-child::after{
    display: none;
}

.breadcrumbs a{
    color: var(--color-text-muted);
}

.breadcrumbs a:hover{
    color: var(--color-primary-light);
}

.breadcrumbs .current{
    color: var(--color-text);
}

/* ==========================
   CATEGORY PAGE
   ========================== */
.category-header{
    margin-bottom: 32px;
}

.category-header h1{
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.category-header h1 i{
    color: var(--color-primary);
}

.category-count{
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.subcategory-pills{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.pill{
    padding: 8px 18px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}

.pill:hover,
.pill.active{
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ==========================
   PAGINATION
   ========================== */
.pagination{
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination-btn{
    padding: 10px 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.pagination-btn:hover{
    border-color: var(--color-primary);
    color: var(--color-primary-light);
}

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

/* ==========================
   SEARCH (inline)
   ========================== */
.search-inline{
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    max-width: 500px;
}

.search-inline input{
    flex: 1;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition);
}

.search-inline input:focus{
    border-color: var(--color-primary);
}

.search-info{
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* ==========================
   404 ERROR PAGE
   ========================== */
.error-page{
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-content{
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.error-code{
    font-size: 8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.error-content h2{
    font-size: 1.5rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.error-content p{
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

/* ==========================
   EMPTY MESSAGE
   ========================== */
.empty-message{
    text-align: center;
    color: var(--color-text-muted);
    padding: 48px 0;
    font-size: 1rem;
}

/* ==========================
   FOOTER
   ========================== */
.site-footer{
    background: var(--color-bg-lighter);
    border-top: 1px solid var(--color-border);
    padding: 60px 0 0;
    margin-top: 60px;
}

.footer-grid{
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer-logo{
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-light);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.footer-logo:hover{
    color: var(--color-text-light);
}

.footer-logo i{
    color: var(--color-primary);
}

.footer-about p{
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4{
    color: var(--color-text-light);
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

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

.footer-links li{
    margin-bottom: 8px;
}

.footer-links a{
    color: var(--color-text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.footer-bottom{
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p{
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ==========================
   RESPONSIVE
   ========================== */
@media(max-width: 1024px){
    .nav-list > li > a{
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

@media(max-width: 768px){
    .main-nav{
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-bg);
        padding: 24px;
        overflow-y: auto;
        z-index: 999;
    }

    .main-nav.active{
        display: block;
    }

    .nav-list{
        flex-direction: column;
        gap: 0;
    }

    .nav-list > li > a{
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .dropdown{
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0 20px;
    }

    .mobile-menu-toggle{
        display: flex;
    }

    .hero-title{
        font-size: 2rem;
    }

    .hero-subtitle{
        font-size: 1rem;
    }

    .post-grid{
        grid-template-columns: 1fr;
    }

    .footer-grid{
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .post-header h1{
        font-size: 1.6rem;
    }

    .category-header h1{
        font-size: 1.5rem;
    }
}

@media(max-width: 480px){
    .hero{
        padding: 60px 0 50px;
    }

    .hero-title{
        font-size: 1.6rem;
    }

    .section{
        padding: 40px 0;
    }

    .comment-header{
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .post-meta{
        flex-wrap: wrap;
        gap: 12px;
    }
}
