/* ============================================================
   COIN THEME - Main Styles
   ============================================================ */

/* ----- RESET & BASE ----- */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --secondary-color: #0f172a;
    --accent-color: #f43f5e;
    --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-white: #f8fafc;
    --bg-color: #f1f5f9;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-width: 1200px;
    --header-height: 72px;
    --header-scrolled: 60px;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0f172a;
        --bg-white: #1e293b;
        --text-color: #f1f5f9;
        --text-light: #94a3b8;
        --border-color: #334155;
        --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
        --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
        --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-color);
    background: var(--bg-color);
    transition: background 0.3s ease;
}

/* ----- SCROLLBAR ----- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ----- SELECTION ----- */
::selection {
    background: var(--primary-color);
    color: #fff;
}

/* ----- LINKS ----- */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Underline animation for content links */
.content-area a:not(.btn):not(.read-more):not(.page-numbers):not(.widget a):not(.share-buttons a):not(.related-link):not(.entry-tags a) {
    background-image: linear-gradient(var(--primary-color), var(--primary-color));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.3s ease;
}

.content-area a:not(.btn):not(.read-more):not(.page-numbers):not(.widget a):not(.share-buttons a):not(.related-link):not(.entry-tags a):hover {
    background-size: 100% 2px;
}

/* ----- CONTAINER ----- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- ANIMATIONS ----- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

/* ----- NOTIFICATION BAR ----- */
.notification-bar {
    background: var(--primary-gradient);
    color: #fff;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1001;
    overflow: hidden;
}

.notification-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

.notification-bar p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.notification-bar a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

/* ----- HEADER ----- */
.site-header {
    background: var(--bg-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.site-header.sticky {
    height: var(--header-scrolled);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* ----- SITE BRANDING ----- */
.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-logo img {
    max-height: 45px;
    width: auto;
    transition: var(--transition);
}

.site-header.sticky .site-logo img {
    max-height: 35px;
}

.site-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-title a {
    background: none !important;
}

.site-description {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    font-weight: 400;
}

/* ----- NAVIGATION ----- */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 8px 18px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    position: relative;
}

.nav-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

.nav-menu > li > a:hover::before,
.nav-menu .current-menu-item > a::before,
.nav-menu .current-page-ancestor > a::before {
    width: 60%;
}

.nav-menu > li > a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
}

.nav-menu > li > a i {
    font-size: 11px;
    margin-left: 6px;
    transition: var(--transition);
}

.nav-menu > li:hover > a i {
    transform: rotate(180deg);
}

.nav-menu .current-menu-item > a,
.nav-menu .current-page-ancestor > a {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

/* ----- DROPDOWN ----- */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 8px 0;
    margin: 0;
    list-style: none;
    animation: fadeInDown 0.3s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-menu .sub-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.nav-menu .sub-menu .sub-menu {
    top: -8px;
    left: calc(100% + 8px);
    transform: translateX(0);
}

.nav-menu .sub-menu .sub-menu::before {
    left: -6px;
    top: 20px;
    transform: rotate(-45deg);
}

.nav-menu li:hover > .sub-menu {
    display: block;
}

.nav-menu .sub-menu li a {
    display: block;
    padding: 10px 24px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 400;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-menu .sub-menu li a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    border-left-color: var(--primary-color);
}

/* ----- NAV ACTIONS ----- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-color);
    font-size: 18px;
    transition: var(--transition);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-color);
    transform: scale(1.05);
}

.search-form-container {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--bg-white);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    min-width: 340px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.search-form-container.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.search-form-container .search-form {
    display: flex;
    gap: 12px;
}

.search-form-container .search-form input[type="search"] {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
    background: var(--bg-color);
    color: var(--text-color);
}

.search-form-container .search-form input[type="search"]:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.search-form-container .search-form button {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.search-form-container .search-form button:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-glow);
}

/* ----- MENU TOGGLE ----- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 42px;
    height: 42px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.menu-toggle .bar {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text-color);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ----- BREADCRUMBS ----- */
.breadcrumbs {
    background: var(--bg-white);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border: 1px solid var(--border-color);
}

.breadcrumbs a {
    color: var(--text-color);
    font-weight: 500;
    background: none !important;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs i {
    font-size: 12px;
    color: var(--text-light);
}

.breadcrumbs .fa-home {
    color: var(--primary-color);
}

.breadcrumbs .current {
    color: var(--primary-color);
    font-weight: 600;
}

/* ----- MAIN CONTENT ----- */
.site-main {
    padding: 40px 0 60px;
}

.content-area {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.main-content {
    flex: 2;
    min-width: 0;
}

.main-content.full-width {
    flex: 1;
}

.sidebar {
    flex: 1;
    min-width: 280px;
    max-width: 340px;
    position: sticky;
    top: calc(var(--header-height) + 30px);
}

.sidebar-left .content-area {
    flex-direction: row-reverse;
}

/* ----- BLOG POSTS ----- */
.blog-post, .single-post, .page-content {
    background: var(--bg-white);
    padding: 35px;
    margin-bottom: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease;
}

.blog-post:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.post-thumbnail {
    margin: -35px -35px 25px -35px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    position: relative;
}

.post-thumbnail img {
    transition: var(--transition-slow);
    width: 100%;
    height: auto;
}

.post-thumbnail a:hover img {
    transform: scale(1.05);
}

.post-thumbnail .post-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-gradient);
    color: #fff;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.entry-title a {
    color: var(--text-color);
    background: none !important;
    transition: var(--transition);
}

.entry-title a:hover {
    color: var(--primary-color);
}

.entry-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.entry-meta i {
    font-size: 14px;
    color: var(--primary-color);
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 18px;
}

.entry-content h2, .entry-content h3, .entry-content h4 {
    margin: 35px 0 16px;
    font-weight: 700;
    line-height: 1.3;
}

.entry-content h2 {
    font-size: 28px;
    letter-spacing: -0.5px;
}

.entry-content h3 {
    font-size: 22px;
}

.entry-content ul, .entry-content ol {
    margin: 0 0 18px 25px;
}

.entry-content li {
    margin-bottom: 6px;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 24px 30px;
    margin: 30px 0;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    position: relative;
}

.entry-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 12px;
    font-size: 48px;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.entry-content blockquote p {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.entry-content blockquote cite {
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-weight: 600;
    color: var(--text-light);
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: 20px 0;
    max-width: 100%;
    height: auto;
}

.entry-content .wp-block-image figcaption {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 8px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
    background: none !important;
}

.read-more:hover {
    color: var(--primary-dark);
    gap: 14px;
}

.read-more i {
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(4px);
}

/* ----- SINGLE POST ----- */
.single-post .entry-title {
    font-size: 38px;
}

.single-post .entry-meta {
    font-size: 15px;
}

.entry-tags {
    margin: 30px 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.entry-tags a {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-color);
    padding: 5px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    transition: var(--transition);
    font-weight: 500;
}

.entry-tags a:hover {
    background: var(--primary-gradient);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ----- POST NAVIGATION ----- */
.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 25px 0;
    border-top: 2px solid var(--border-color);
    margin-top: 30px;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation a {
    display: block;
    padding: 14px 24px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-md);
    transition: var(--transition);
    color: var(--text-color);
    font-weight: 500;
    border: 1px solid transparent;
}

.post-navigation a:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: var(--primary-color);
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-previous:hover {
    transform: translateX(-4px);
}

.post-navigation .nav-next:hover {
    transform: translateX(4px);
}

/* ----- SHARE BUTTONS ----- */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0 20px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 8px;
}

.share-buttons a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
    font-size: 16px;
    position: relative;
}

.share-buttons a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    transition: var(--transition);
    transform: scale(1.3);
}

.share-buttons a:hover::after {
    opacity: 0.2;
    transform: scale(1.5);
}

.share-buttons a:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0a66c2; }
.share-pinterest { background: #e60023; }
.share-telegram { background: #0088cc; }
.share-whatsapp { background: #25d366; }
.share-reddit { background: #ff4500; }
.share-email { background: #6c757d; }

.share-copy {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-copy:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* ----- RELATED POSTS ----- */
.related-posts {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.related-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.related-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.related-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.related-thumbnail {
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.related-item:hover .related-thumbnail img {
    transform: scale(1.08);
}

.related-thumbnail .related-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--primary-gradient);
    color: #fff;
    padding: 2px 14px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.related-item .related-link {
    padding: 18px 20px 20px;
    display: block;
    color: var(--text-color);
    background: none !important;
}

.related-item .related-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
    background: none;
}

.related-item .related-title::after {
    display: none;
}

.related-item .related-date {
    font-size: 13px;
    color: var(--text-light);
}

/* ----- READING TIME ----- */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-light);
    background: rgba(99, 102, 241, 0.06);
    padding: 4px 16px;
    border-radius: var(--radius-full);
}

.reading-time i {
    color: var(--primary-color);
}

/* ----- SIDEBAR ----- */
.widget {
    background: var(--bg-white);
    padding: 28px;
    margin-bottom: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.widget:hover {
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    background: none !important;
}

.widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 6px;
}

.widget ul li a::before {
    content: '→';
    color: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.widget ul li a:hover::before {
    opacity: 1;
}

.widget .wp-block-latest-posts__post-date {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-top: 2px;
}

/* Recent Posts Widget */
.recent-posts-widget li {
    padding: 12px 0 !important;
}

.recent-posts-widget li a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recent-posts-widget .recent-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.recent-posts-widget .recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-posts-widget .recent-title {
    font-weight: 500;
}

.recent-posts-widget .recent-date {
    font-size: 12px;
    color: var(--text-light);
    display: block;
}

/* ----- SEARCH FORM ----- */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
    background: var(--bg-color);
    color: var(--text-color);
}

.search-form input[type="search"]:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.search-form button {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.search-form button:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-glow);
}

/* ----- COMMENTS ----- */
.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.comments-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 24px;
    background: var(--bg-color);
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.comment-author {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-metadata {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

.comment-content {
    margin-top: 12px;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
    font-size: 14px;
}

/* Comment Form */
.comment-respond {
    margin-top: 30px;
}

.comment-respond .comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.comment-respond .comment-form {
    display: grid;
    gap: 16px;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
    background: var(--bg-color);
    color: var(--text-color);
}

.comment-respond input:focus,
.comment-respond textarea:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.comment-respond textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-respond .submit {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 16px;
    justify-self: start;
}

.comment-respond .submit:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-glow);
}

/* ----- PAGINATION ----- */
.pagination {
    text-align: center;
    margin: 40px 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 18px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

.pagination .page-numbers.current {
    background: var(--primary-gradient);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.pagination .page-numbers:hover:not(.current) {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ----- ARCHIVE ----- */
.archive-header {
    background: var(--bg-white);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.archive-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.archive-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.archive-title span {
    color: var(--primary-color);
}

.archive-description {
    color: var(--text-light);
    margin-top: 10px;
    font-size: 16px;
}

.archive-description p {
    margin-bottom: 0;
}

/* ----- 404 PAGE ----- */
.error-404 {
    padding: 80px 20px 60px;
    text-align: center;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.error-title {
    font-size: 140px;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-404 .error-emoji {
    font-size: 80px;
    margin-bottom: 20px;
    display: block;
}

.error-404 h2 {
    font-size: 28px;
    margin: 20px 0 12px;
    font-weight: 700;
}

.error-404 p {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto 30px;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-gradient);
    color: #fff;
    padding: 16px 40px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.btn-home:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.search-form-404 {
    max-width: 500px;
    margin: 30px auto 0;
}

/* ----- BACK TO TOP ----- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.back-to-top .tooltip {
    position: absolute;
    right: calc(100% + 12px);
    background: var(--secondary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.back-to-top:hover .tooltip {
    opacity: 1;
}

/* ----- FOOTER ----- */
.site-footer {
    background: var(--secondary-color);
    color: var(--text-white);
    padding: 60px 0 24px;
    margin-top: 50px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.site-footer a {
    color: #94a3b8;
    transition: var(--transition);
}

.site-footer a:hover {
    color: #fff;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget-col .widget {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
    color: #cbd5e0;
}

.footer-widget-col .widget-title {
    color: #fff;
    border-color: var(--primary-color);
    font-size: 18px;
    padding-bottom: 12px;
}

.footer-widget-col .widget-title::after {
    background: var(--primary-gradient);
}

.footer-widget-col .widget ul li {
    border-color: rgba(255,255,255,0.06);
}

.footer-widget-col .widget ul li a {
    color: #94a3b8;
}

.footer-widget-col .widget ul li a:hover {
    color: #fff;
    padding-left: 6px;
}

.footer-nav {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 24px;
}

.footer-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-menu a {
    color: #94a3b8;
    font-size: 14px;
    transition: var(--transition);
    font-weight: 500;
}

.footer-menu a:hover {
    color: #fff;
}

/* ----- SOCIAL ICONS ----- */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 28px 0;
}

.social-icons a {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
    transition: var(--transition);
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}

.social-icons a:hover {
    background: var(--primary-gradient);
    color: #fff;
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

/* ----- FOOTER BOTTOM ----- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-info {
    font-size: 14px;
    text-align: center;
}

.footer-info p {
    margin: 4px 0;
}

.footer-menu-small {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-menu-small a {
    color: #94a3b8;
    font-size: 13px;
    transition: var(--transition);
}

.footer-menu-small a:hover {
    color: #fff;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1024px) {
    .content-area {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    :root {
        --header-height: 64px;
    }

    .site-header {
        height: var(--header-height);
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--bg-white);
        padding: 16px 0;
        box-shadow: var(--shadow-lg);
        border-radius: var(--radius-md);
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        gap: 0;
        border: 1px solid var(--border-color);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
        animation: fadeInDown 0.3s ease;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu > li > a {
        padding: 12px 24px;
        border-radius: 0;
    }

    .nav-menu > li > a::before {
        display: none;
    }

    .nav-menu > li > a i {
        float: right;
        margin-top: 4px;
    }

    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(99, 102, 241, 0.04);
        padding-left: 20px;
        border-radius: 0;
        transform: none;
        animation: none;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu .sub-menu::before {
        display: none;
    }

    .nav-menu .sub-menu .sub-menu {
        left: 0;
        top: 0;
        padding-left: 20px;
    }

    .nav-actions {
        gap: 4px;
    }

    .search-form-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.7);
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
        border-radius: 0;
        min-width: auto;
        border: none;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .search-form-container.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .search-form-container .search-form {
        max-width: 500px;
        width: 100%;
        background: var(--bg-white);
        padding: 24px;
        border-radius: var(--radius-md);
    }

    .sidebar {
        position: static;
        max-width: 100%;
    }

    .single-post .entry-title {
        font-size: 30px;
    }

    .error-title {
        font-size: 100px;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 20px;
    }

    .site-description {
        display: none;
    }

    .content-area {
        flex-direction: column;
    }

    .sidebar {
        min-width: auto;
        max-width: 100%;
    }

    .entry-title {
        font-size: 22px;
    }

    .single-post .entry-title {
        font-size: 26px;
    }

    .blog-post, .single-post, .page-content {
        padding: 24px;
    }

    .post-thumbnail {
        margin: -24px -24px 20px -24px;
    }

    .post-navigation {
        flex-direction: column;
        gap: 12px;
    }

    .post-navigation .nav-next {
        text-align: left;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .error-title {
        font-size: 72px;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .breadcrumbs {
        font-size: 13px;
        padding: 12px 18px;
    }

    .search-form-container .search-form {
        flex-direction: column;
    }

    .search-form-container .search-form button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .site-branding .site-title {
        font-size: 18px;
    }

    .site-logo img {
        max-height: 32px;
    }

    .entry-title {
        font-size: 18px;
    }

    .single-post .entry-title {
        font-size: 22px;
    }

    .blog-post, .single-post, .page-content {
        padding: 16px;
    }

    .post-thumbnail {
        margin: -16px -16px 16px -16px;
    }

    .header-inner {
        gap: 8px;
    }

    .entry-meta {
        font-size: 12px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    .error-title {
        font-size: 56px;
    }

    .error-404 h2 {
        font-size: 22px;
    }

    .container {
        padding: 0 16px;
    }

    .archive-title {
        font-size: 26px;
    }
}

/* ----- UTILITY CLASSES ----- */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-light { color: var(--text-light); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

/* ----- PRINT STYLES ----- */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .breadcrumbs,
    .share-buttons,
    .back-to-top,
    .related-posts,
    .post-navigation,
    .comments-area {
        display: none !important;
    }

    .blog-post, .single-post, .page-content {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }

    .site-main {
        padding: 0 !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }
}