/**
 * Moderna Theme Main Stylesheet
 */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --body-color: #333;
    --border-color: #e9ecef;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--body-color);
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

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

a:hover {
    color: var(--primary-color);
    opacity: 0.8;
}

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

/* Header Styles */
.site-header {
    position: relative;
    z-index: 100;
    background: #fff;
}

.header-top {
    background: var(--light-color);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.site-branding {
    padding: 5px 0;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 24px;
}

.site-title a {
    color: var(--dark-color);
}

.site-description {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.header-info {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item i {
    color: var(--primary-color);
}

.info-item a {
    color: #666;
}

.info-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    color: #666;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Main Navigation */
.header-main {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation ul li {
    position: relative;
    margin: 0 12px;
}

.main-navigation ul li a {
    display: block;
    padding: 20px 0;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

.main-navigation ul li:hover > a,
.main-navigation ul li.current-menu-item > a {
    color: var(--primary-color);
}

/* Dropdown Menu */
.main-navigation ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    flex-direction: column;
    border-radius: 8px;
    padding: 10px 0;
}

.main-navigation ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul li ul li {
    margin: 0;
}

.main-navigation ul li ul li a {
    padding: 10px 20px;
    border-bottom: none;
}

.main-navigation ul li ul li a:hover {
    background: var(--light-color);
    padding-left: 25px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-toggle,
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--dark-color);
    transition: var(--transition);
}

.search-toggle:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    position: relative;
}

.search-overlay .search-form {
    display: flex;
}

.search-overlay .search-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 18px;
    border-radius: 50px 0 0 50px;
    outline: none;
}

.search-overlay .search-form button {
    padding: 15px 30px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-overlay .search-form button:hover {
    opacity: 0.9;
}

.search-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* Main Content */
.site-content {
    min-height: 500px;
    padding: 60px 0;
}

/* Entry Styles */
.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.entry-title a {
    color: var(--dark-color);
}

.entry-title a:hover {
    color: var(--primary-color);
}

.entry-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.entry-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.entry-meta a {
    color: #666;
}

.entry-meta a:hover {
    color: var(--primary-color);
}

.post-thumbnail {
    margin-bottom: 30px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.entry-content {
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5em;
}

/* Sidebar */
.widget-area {
    padding-left: 30px;
}

.widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

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

.widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--body-color);
    transition: var(--transition);
}

.widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Footer */
.site-footer {
    background: var(--dark-color);
    color: #fff;
    margin-top: 60px;
}

.footer-widgets {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widget-title {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-widget {
    margin-bottom: 30px;
}

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

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-widget ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.copyright {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--body-color);
    transition: var(--transition);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Sticky Header */
.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

.header-hidden {
    transform: translateY(-100%);
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .main-navigation ul {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-active .main-navigation ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .main-navigation ul li {
        margin: 0;
    }
    
    .main-navigation ul li a {
        padding: 10px 0;
    }
    
    .main-navigation ul li ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
    }
    
    .header-info {
        justify-content: center;
        margin-top: 10px;
    }
    
    .widget-area {
        padding-left: 0;
        margin-top: 40px;
    }
    
    .entry-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .header-top .row {
        flex-direction: column;
        text-align: center;
    }
    
    .site-branding {
        text-align: center;
    }
    
    .entry-title {
        font-size: 24px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}