/**
 * Xinvestment Blog - Main Stylesheet
 * Brand Guidelines Compliant
 * Premium Investment Blog Design
 */

/* ===============================
   CSS Custom Properties
   =============================== */
:root {
    /* Brand Colors */
    --primary-navy: #0B1A2E;
    --primary-navy-light: #162d4d;
    --primary-navy-dark: #071422;
    
    /* Gold Gradients */
    --gold-1: #BFA14A;
    --gold-2: #E5D5A0;
    --gold-3: #F7EFC5;
    --gold-4: #D4B956;
    --gold-5: #9A7B2D;
    
    /* Symbol Gold */
    --symbol-gold-1: #C9A941;
    --symbol-gold-2: #F2E5B1;
    --symbol-gold-3: #E8D78E;
    --symbol-gold-4: #A08624;
    
    /* Backgrounds */
    --bg-cream: #FAFAF8;
    --bg-light: #F5F5F3;
    --bg-white: #FFFFFF;
    
    /* Text Colors */
    --text-dark: #1A1A1A;
    --text-muted: #6B6B6B;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-light-muted: rgba(255, 255, 255, 0.7);
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 25%, var(--gold-3) 50%, var(--gold-4) 75%, var(--gold-5) 100%);
    --gradient-gold-simple: linear-gradient(135deg, var(--gold-1), var(--gold-4));
    --gradient-navy: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
    
    /* Typography */
    --font-primary: 'Noto Sans JP', 'Helvetica Neue', sans-serif;
    --font-display: 'Playfair Display', 'Noto Serif JP', serif;
    --font-mono: 'Fira Code', 'Source Code Pro', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 4px 20px rgba(191, 161, 74, 0.2);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-popover: 500;
}

/* ===============================
   Reset & Base Styles
   =============================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gold-5);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold-4);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}

/* ===============================
   Layout
   =============================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container--narrow {
    max-width: 900px;
}

.container--wide {
    max-width: 1440px;
}

/* ===============================
   Header Styles
   =============================== */
.xi-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.xi-header__top {
    background: var(--primary-navy);
    padding: var(--space-xs) 0;
    font-size: 0.8rem;
}

.xi-header__top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xi-header__contact {
    color: var(--text-light-muted);
}

.xi-header__contact i {
    margin-right: var(--space-xs);
    color: var(--gold-4);
}

.xi-header__social {
    display: flex;
    gap: var(--space-md);
}

.xi-header__social a {
    color: var(--text-light-muted);
    transition: color var(--transition-fast);
}

.xi-header__social a:hover {
    color: var(--gold-4);
}

.xi-header__main {
    padding: var(--space-md) 0;
}

.xi-header__main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

/* Logo */
.xi-logo {
    display: block;
    flex-shrink: 0;
}

.xi-logo__svg {
    width: 240px;
    height: auto;
}

/* Navigation */
.xi-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.xi-nav__list {
    display: flex;
    gap: var(--space-xs);
}

.xi-nav__item {
    position: relative;
}

.xi-nav__link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.xi-nav__link:hover,
.xi-nav__link.is-active {
    color: var(--primary-navy);
    background: var(--bg-light);
}

.xi-nav__link i:first-child {
    font-size: 0.85rem;
    color: var(--gold-4);
}

.xi-nav__arrow {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.xi-nav__item:hover .xi-nav__arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.xi-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown);
}

.xi-nav__item:hover .xi-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.xi-nav__dropdown li a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-muted);
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.xi-nav__dropdown li a:hover {
    background: var(--bg-light);
    color: var(--primary-navy);
}

.xi-nav__dropdown li a i {
    color: var(--gold-4);
    font-size: 0.75rem;
}

/* Header Actions */
.xi-header__actions {
    display: flex;
    gap: var(--space-sm);
}

.xi-search-toggle,
.xi-menu-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.xi-search-toggle:hover,
.xi-menu-toggle:hover {
    background: var(--bg-light);
    color: var(--primary-navy);
}

.xi-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.xi-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: all var(--transition-fast);
}

/* Search Overlay */
.xi-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-navy);
    padding: var(--space-xl) 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
}

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

.xi-search-form {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}

.xi-search-input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--text-light);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.xi-search-input::placeholder {
    color: var(--text-light-muted);
}

.xi-search-input:focus {
    outline: none;
    border-color: var(--gold-4);
    background: rgba(255, 255, 255, 0.15);
}

.xi-search-submit,
.xi-search-close {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.xi-search-submit {
    background: var(--gradient-gold-simple);
    color: var(--primary-navy);
}

.xi-search-submit:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-gold);
}

.xi-search-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===============================
   Main Content
   =============================== */
.xi-main {
    min-height: calc(100vh - 400px);
}

/* Hero Section */
.xi-hero {
    background: var(--gradient-navy);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.xi-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 15V45L30 60L0 45V15L30 0z' fill='none' stroke='%23ffffff' stroke-opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.xi-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.xi-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: var(--space-md);
    letter-spacing: 0.02em;
}

.xi-hero__title span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.xi-hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-light-muted);
    margin-bottom: var(--space-xl);
}

.xi-hero__stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.xi-hero__stat {
    text-align: center;
}

.xi-hero__stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.xi-hero__stat-label {
    font-size: 0.85rem;
    color: var(--text-light-muted);
    margin-top: var(--space-xs);
}

/* Section Styles */
.xi-section {
    padding: var(--space-3xl) 0;
}

.xi-section--alt {
    background: var(--bg-light);
}

.xi-section--navy {
    background: var(--gradient-navy);
}

.xi-section__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.xi-section__tag {
    display: inline-block;
    background: var(--gradient-gold-simple);
    color: var(--primary-navy);
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.xi-section__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: var(--space-sm);
}

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

/* Category Navigation */
.xi-category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.xi-category-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-white);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.xi-category-btn:hover {
    border-color: var(--gold-4);
    color: var(--primary-navy);
}

.xi-category-btn.is-active {
    background: var(--primary-navy);
    color: var(--text-light);
}

.xi-category-btn i {
    color: var(--gold-4);
}

/* Post Grid */
.xi-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-xl);
}

/* Post Card */
.xi-post-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.xi-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.xi-post-card__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

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

.xi-post-card__category {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--gradient-gold-simple);
    color: var(--primary-navy);
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.xi-post-card__content {
    padding: var(--space-lg);
}

.xi-post-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.xi-post-card__meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.xi-post-card__meta i {
    color: var(--gold-4);
}

.xi-post-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: var(--space-sm);
}

.xi-post-card__title a {
    color: var(--primary-navy);
    transition: color var(--transition-fast);
}

.xi-post-card__title a:hover {
    color: var(--gold-5);
}

.xi-post-card__excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xi-post-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--bg-light);
}

.xi-post-card__read-more {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-5);
}

.xi-post-card__read-more i {
    transition: transform var(--transition-fast);
}

.xi-post-card__read-more:hover i {
    transform: translateX(4px);
}

.xi-post-card__stats {
    display: flex;
    gap: var(--space-md);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.xi-post-card__stats span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Featured Post */
.xi-featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-2xl);
}

.xi-featured-post__image {
    position: relative;
    min-height: 400px;
}

.xi-featured-post__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xi-featured-post__content {
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.xi-featured-post__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--gradient-gold-simple);
    color: var(--primary-navy);
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    width: fit-content;
}

.xi-featured-post__title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--primary-navy);
    margin-bottom: var(--space-md);
}

.xi-featured-post__excerpt {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

/* Buttons */
.xi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.xi-btn--primary {
    background: var(--gradient-gold-simple);
    color: var(--primary-navy);
}

.xi-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: var(--primary-navy);
}

.xi-btn--secondary {
    background: var(--primary-navy);
    color: var(--text-light);
}

.xi-btn--secondary:hover {
    background: var(--primary-navy-light);
    color: var(--text-light);
}

.xi-btn--outline {
    background: transparent;
    border: 2px solid var(--gold-4);
    color: var(--gold-5);
}

.xi-btn--outline:hover {
    background: var(--gold-4);
    color: var(--primary-navy);
}

/* Sidebar */
.xi-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.xi-widget {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.xi-widget__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-navy);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
    border-bottom: 2px solid var(--gold-4);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.xi-widget__title i {
    color: var(--gold-4);
}

/* Ad Slots */
.xi-ad-slot {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xi-ad-slot--sidebar {
    min-height: 300px;
}

.xi-ad-slot--in-article {
    margin: var(--space-xl) 0;
}

.xi-ad-slot__label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

/* Article Styles */
.xi-article {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.xi-article__header {
    position: relative;
}

.xi-article__image {
    aspect-ratio: 21 / 9;
    overflow: hidden;
}

.xi-article__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xi-article__header-content {
    padding: var(--space-2xl);
}

.xi-article__category {
    display: inline-block;
    background: var(--gradient-gold-simple);
    color: var(--primary-navy);
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.xi-article__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-navy);
    margin-bottom: var(--space-md);
}

.xi-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.xi-article__meta span {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.xi-article__meta i {
    color: var(--gold-4);
}

.xi-article__content {
    padding: 0 var(--space-2xl) var(--space-2xl);
    font-size: 1.05rem;
    line-height: 2;
}

.xi-article__content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin: var(--space-2xl) 0 var(--space-md);
    padding-left: var(--space-md);
    border-left: 4px solid var(--gold-4);
}

.xi-article__content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin: var(--space-xl) 0 var(--space-md);
}

.xi-article__content p {
    margin-bottom: var(--space-md);
}

.xi-article__content ul,
.xi-article__content ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
}

.xi-article__content ul {
    list-style: disc;
}

.xi-article__content ol {
    list-style: decimal;
}

.xi-article__content li {
    margin-bottom: var(--space-sm);
}

.xi-article__content blockquote {
    background: var(--bg-light);
    border-left: 4px solid var(--gold-4);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    font-style: italic;
    color: var(--text-muted);
}

.xi-article__content code {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.xi-article__content pre {
    background: var(--primary-navy);
    color: var(--text-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: var(--space-xl) 0;
}

.xi-article__content pre code {
    background: none;
    padding: 0;
}

.xi-article__content img {
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
}

.xi-article__content a {
    color: var(--gold-5);
    text-decoration: underline;
    text-decoration-color: var(--gold-2);
    text-underline-offset: 3px;
}

.xi-article__content a:hover {
    color: var(--gold-4);
}

/* Tags */
.xi-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.xi-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 0.8rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.xi-tag:hover {
    background: var(--gold-4);
    color: var(--primary-navy);
}

/* Pagination */
.xi-pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
}

.xi-pagination__item {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.xi-pagination__item:hover {
    background: var(--gold-4);
    color: var(--primary-navy);
}

.xi-pagination__item.is-active {
    background: var(--primary-navy);
    color: var(--text-light);
}

/* ===============================
   Footer Styles
   =============================== */
.xi-footer {
    background: var(--primary-navy);
    color: var(--text-light);
    margin-top: var(--space-3xl);
}

.xi-footer__newsletter {
    background: var(--primary-navy-dark);
    padding: var(--space-2xl) 0;
}

.xi-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
}

.xi-newsletter__title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.xi-newsletter__title i {
    color: var(--gold-4);
}

.xi-newsletter__text {
    color: var(--text-light-muted);
    font-size: 0.9rem;
}

.xi-newsletter__form {
    flex: 1;
    max-width: 500px;
}

.xi-newsletter__input-group {
    display: flex;
    gap: var(--space-sm);
}

.xi-newsletter__input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.xi-newsletter__input::placeholder {
    color: var(--text-light-muted);
}

.xi-newsletter__input:focus {
    outline: none;
    border-color: var(--gold-4);
    background: rgba(255, 255, 255, 0.15);
}

.xi-newsletter__button {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--gradient-gold-simple);
    color: var(--primary-navy);
    font-weight: 600;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.xi-newsletter__button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.xi-footer__main {
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.xi-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--space-2xl);
}

.xi-footer__col--about {
    padding-right: var(--space-xl);
}

.xi-footer__logo {
    display: block;
    margin-bottom: var(--space-lg);
}

.xi-footer__logo-svg {
    width: 220px;
    height: auto;
}

.xi-footer__about-text {
    color: var(--text-light-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}

.xi-footer__social {
    display: flex;
    gap: var(--space-md);
}

.xi-footer__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-light-muted);
    transition: all var(--transition-fast);
}

.xi-footer__social a:hover {
    background: var(--gold-4);
    color: var(--primary-navy);
}

.xi-footer__heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.xi-footer__heading::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--gradient-gold-simple);
    border-radius: var(--radius-sm);
}

.xi-footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.xi-footer__links a {
    color: var(--text-light-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: color var(--transition-fast);
}

.xi-footer__links a:hover {
    color: var(--gold-4);
}

.xi-footer__links a i {
    font-size: 0.8rem;
    color: var(--gold-4);
}

.xi-footer__links--posts a {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.xi-footer__post-title {
    font-size: 0.85rem;
}

.xi-footer__post-views {
    font-size: 0.75rem;
    color: var(--text-light-muted);
}

.xi-footer__tags {
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.xi-footer__tags .xi-tag-cloud {
    margin-top: var(--space-md);
}

.xi-footer__tags .xi-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light-muted);
}

.xi-footer__tags .xi-tag:hover {
    background: var(--gold-4);
    color: var(--primary-navy);
}

.xi-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg) 0;
}

.xi-footer__bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light-muted);
}

.xi-footer__copyright strong {
    color: var(--gold-4);
}

/* Back to Top */
.xi-back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 50px;
    height: 50px;
    background: var(--primary-navy);
    color: var(--gold-4);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-fast);
    z-index: var(--z-fixed);
}

.xi-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.xi-back-to-top:hover {
    background: var(--gold-4);
    color: var(--primary-navy);
}

/* ===============================
   Responsive Design
   =============================== */
@media (max-width: 1200px) {
    .xi-nav__link span {
        display: none;
    }
    
    .xi-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .xi-featured-post {
        grid-template-columns: 1fr;
    }
    
    .xi-featured-post__image {
        min-height: 300px;
    }
    
    .xi-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .xi-header__top {
        display: none;
    }
    
    .xi-nav {
        display: none;
    }
    
    .xi-menu-toggle {
        display: flex;
    }
    
    .xi-logo__svg {
        width: 180px;
    }
    
    .xi-hero__stats {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }
    
    .xi-newsletter {
        flex-direction: column;
        text-align: center;
    }
    
    .xi-newsletter__form {
        width: 100%;
        max-width: none;
    }
    
    .xi-newsletter__input-group {
        flex-direction: column;
    }
    
    .xi-footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .xi-footer__col--about {
        padding-right: 0;
    }
    
    .xi-footer__social {
        justify-content: center;
    }
    
    .xi-footer__heading::before {
        display: none;
    }
    
    .xi-footer__links {
        align-items: center;
    }
    
    .xi-footer__bottom-content {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .xi-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .xi-article__header-content,
    .xi-article__content {
        padding: var(--space-md);
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--bg-light) 0px, rgba(255,255,255,0.5) 40px, var(--bg-light) 80px);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* ===============================
   Hero Section (Compatibility Styles)
   =============================== */
.hero {
    background: var(--gradient-navy);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.hexagon-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 15V45L30 60L0 45V15L30 0z' fill='none' stroke='%23ffffff' stroke-opacity='0.05'/%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-title-main {
    display: block;
    color: #fff;
}

.hero-title-accent {
    display: block;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 40px 0;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light-muted);
    margin-top: 5px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-cta .btn {
    padding: 12px 30px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.hero-cta .btn-primary {
    background: var(--gradient-gold-simple);
    color: var(--primary-navy);
    border: none;
}

.hero-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(191, 161, 74, 0.4);
}

.hero-cta .btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-cta .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* ===============================
   Category Navigation
   =============================== */
.category-nav-section {
    background: var(--bg-cream);
    padding: 30px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.category-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #fff;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.category-nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--cat-color, var(--gold-1));
}

.category-nav-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--cat-color, var(--gold-1));
    font-size: 1rem;
}

.category-nav-name {
    font-size: 0.95rem;
}

.category-nav-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Sidebar Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 8px;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.category-link:hover {
    background: var(--bg-cream);
    transform: translateX(5px);
}

.category-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    color: var(--cat-color, var(--gold-1));
    font-size: 0.9rem;
}

.category-name {
    flex: 1;
    font-weight: 500;
}

.category-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #fff;
    padding: 2px 8px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .hero-stats {
        gap: 30px;
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
    
    .category-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
    }
    
    .category-nav-item {
        flex-shrink: 0;
    }
}
