@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700&display=swap');

/* ===== CSS Variables ===== */
:root {
    --bg-primary: #050a14;
    --bg-secondary: #0d1421;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent: #00f2ff;
    --accent-hover: #00d4e0;
    --accent-glow: rgba(0, 242, 255, 0.15);
    --secondary-accent: #7000ff;
    --success: #10b981;
    --error: #ef4444;
    --border: #1f2937;
    --border-light: #374151;
    --gradient-accent: linear-gradient(135deg, #00f2ff 0%, #7000ff 100%);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --container-max: 1200px;
    --sidebar-width: 320px;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

main {
    flex: 1;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 8px 16px;
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.125rem;
}

.logo svg,
.logo-icon {
    color: var(--accent);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
}

/* Navigation */
.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-list a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    left: 0;
}

.menu-icon::before {
    top: -7px;
}

.menu-icon::after {
    bottom: -7px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        padding: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease, visibility 0.3s ease, opacity 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
    }

    .main-nav.is-open {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }

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

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-list a {
        display: block;
        width: 100%;
        font-size: 1.125rem;
        padding: 1rem;
        color: var(--text-primary);
        background: transparent;
        border-radius: 0;
    }

    .nav-list a:hover,
    .nav-list a.active {
        background: rgba(0, 242, 255, 0.1);
        color: var(--accent);
    }
}

/* ===== Hero Section ===== */
.hero {
    padding: 4rem 0;
    background: radial-gradient(circle at 20% 50%, var(--accent-glow) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(112, 0, 255, 0.1) 0%, transparent 50%);
}

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

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 50px;
    font-size: 0.8125rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.text-accent {
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent-glow);
}

.hero-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

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

.main-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 3rem;
}

.content-main {
    min-width: 0;
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-top: 2rem;
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* ===== Article Cards ===== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.article-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

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

.card-link {
    display: block;
    color: inherit;
}

.card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-secondary);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.card-content {
    padding: 1.25rem;
}

.article-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.meta-separator {
    color: var(--text-muted);
}

/* ===== Featured Article ===== */
.article-featured {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 3rem;
    transition: border-color 0.2s;
}

.article-featured:hover {
    border-color: var(--border-light);
}

.featured-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: inherit;
}

@media (max-width: 700px) {
    .featured-link {
        grid-template-columns: 1fr;
    }
}

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

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

.featured-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 4rem;
}

.featured-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.featured-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Sidebar ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.widget-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.category-list {
    list-style: none;
}

.category-list li {
    border-bottom: 1px solid var(--border);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.category-list a:hover {
    color: var(--text-primary);
}

.cat-count {
    background: var(--bg-secondary);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* Popular Articles */
.popular-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-list a {
    display: flex;
    gap: 0.75rem;
    color: inherit;
}

.popular-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.popular-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.popular-title {
    font-size: 0.875rem;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* Sidebar Ad */
.sidebar-ad {
    padding: 0;
    background: transparent;
    border: none;
}

@media (max-width: 900px) {
    .sidebar-ad {
        display: none;
    }
}

/* ===== Article Page ===== */
.article-header {
    padding: 3rem 0 2rem;
    text-align: center;
}

.article-category-link {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.article-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.article-meta-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.article-hero-image {
    margin-bottom: 2rem;
}

.article-hero-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 3rem;
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
}

.article-content {
    min-width: 0;
}

/* Prose Styles */
.prose {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.prose>*+* {
    margin-top: 1.5rem;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2.5rem;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
}

.prose p {
    color: var(--text-secondary);
}

.prose .lead {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
}

.prose ul,
.prose ol {
    padding-left: 1.5rem;
}

.prose li {
    margin-top: 0.5rem;
}

.prose blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--text-primary);
}

.prose img {
    border-radius: 8px;
    margin: 2rem 0;
}

.prose strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Article Footer */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.article-tags,
.article-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
}

.article-tags span,
.article-share span {
    color: var(--text-muted);
}

.article-share a {
    padding: 0.375rem 0.75rem;
    background: var(--bg-card);
    border-radius: 6px;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.article-share a:hover {
    background: var(--bg-card-hover);
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.related-articles h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* ===== Category Page ===== */
.category-header {
    padding: 3rem 0 2rem;
    background: var(--bg-secondary);
    margin-bottom: 2rem;
}

.category-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-description {
    color: var(--text-secondary);
    max-width: 600px;
}

.article-count {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ===== Static Pages ===== */
.page-header {
    padding: 3rem 0 2rem;
    background: var(--bg-secondary);
    margin-bottom: 2rem;
}

.page-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
}

.page-content {
    max-width: 800px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

.breadcrumb a:hover {
    color: var(--text-primary);
}

.breadcrumb .separator {
    opacity: 0.5;
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

@media (max-width: 500px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.info-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.success-message {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-radius: 12px;
}

.success-message .success-icon {
    width: 60px;
    height: 60px;
    background: var(--success);
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.success-message h2 {
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ===== Error Page ===== */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.error-page h2 {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.error-page p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ===== Forms ===== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.required {
    color: var(--error);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ===== Alerts ===== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.alert ul {
    margin: 0;
    padding-left: 1.25rem;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.page-btn {
    padding: 0.625rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all 0.2s;
}

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

.page-info {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Page Numbers */
.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-num {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.page-num:hover,
.page-num.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.page-ellipsis {
    color: var(--text-muted);
    padding: 0 0.5rem;
}

/* View All Container */
.view-all-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-view-all .article-count {
    opacity: 0.8;
    font-weight: 400;
}

/* Articles Page */
.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.article-count-badge {
    display: inline-block;
    background: var(--accent-glow);
    border: 1px solid rgba(0, 242, 255, 0.3);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== Ad Sections ===== */
.ad-container,
.ad-section {
    margin: 2rem 0;
}

.ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder {
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    width: 100%;
    max-width: 728px;
}

.ad-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.ad-size {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.ad-in-article {
    margin: 2rem auto;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-logo svg {
    color: var(--accent);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

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

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

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Empty States ===== */
.empty-message {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.empty-message h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-message p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ===== Utilities ===== */
.text-accent {
    color: var(--accent);
}

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

/* ===== Mobile Responsive Improvements ===== */

/* Small tablets and large phones */
@media (max-width: 768px) {

    /* Container */
    .container {
        padding: 0 1rem;
    }

    /* Hero */
    .hero {
        padding: 2.5rem 0;
    }

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

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

    .status-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Content sections */
    .content-section {
        padding: 2rem 0;
    }

    /* Featured article */
    .article-featured {
        margin-bottom: 2rem;
    }

    .featured-content {
        padding: 1.5rem;
    }

    .featured-title {
        font-size: 1.25rem;
    }

    /* Article grid */
    .article-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Section headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* Page headers */
    .page-header,
    .category-header {
        padding: 2rem 0 1.5rem;
    }

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

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

    /* Article page */
    .article-header h1 {
        font-size: 1.5rem;
    }

    .article-meta-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .article-hero-image img {
        border-radius: 0;
        max-height: 300px;
    }

    .prose {
        font-size: 1rem;
    }

    .article-footer {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Related articles */
    .related-articles {
        margin-top: 2rem;
        padding-top: 2rem;
    }

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

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .page-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .page-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    /* View All button */
    .view-all-container {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .btn-view-all {
        width: 100%;
        justify-content: center;
    }

    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 16px;
        /* Prevents iOS zoom */
    }

    /* Footer */
    .site-footer {
        padding: 2.5rem 0 1.5rem;
        margin-top: 2rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
    }
}

/* Small phones */
@media (max-width: 480px) {

    /* Container */
    .container {
        padding: 0 0.75rem;
    }

    /* Hero */
    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .status-badge {
        margin-bottom: 1rem;
    }

    /* Cards */
    .card-content {
        padding: 1rem;
    }

    .card-title {
        font-size: 1rem;
    }

    /* Featured */
    .featured-content {
        padding: 1.25rem;
    }

    .featured-title {
        font-size: 1.125rem;
    }

    /* Article page */
    .article-header {
        padding: 2rem 0 1.5rem;
    }

    .article-header h1 {
        font-size: 1.375rem;
    }

    .prose h2 {
        font-size: 1.25rem;
    }

    .prose h3 {
        font-size: 1.125rem;
    }

    /* Sidebar */
    .sidebar-widget {
        padding: 1rem;
    }

    /* Pagination page numbers */
    .page-num {
        min-width: 32px;
        height: 32px;
        font-size: 0.8125rem;
    }

    /* Buttons */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    /* Share buttons */
    .article-share {
        flex-wrap: wrap;
    }

    .article-share a {
        padding: 0.25rem 0.5rem;
        font-size: 0.8125rem;
    }

    /* Article count badge */
    .article-count-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    /* Empty message */
    .empty-message {
        padding: 3rem 1.5rem;
    }

    /* Error page */
    .error-page {
        padding: 2rem 1rem;
    }

    .error-page h1 {
        font-size: 4rem;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .featured-title {
        font-size: 1rem;
    }

    .article-header h1 {
        font-size: 1.25rem;
    }

    .page-num {
        min-width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .page-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Landscape phones */
@media (max-width: 812px) and (orientation: landscape) {
    .hero {
        padding: 1.5rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }
}

/* Touch device improvements */
@media (hover: none) {
    .article-card:hover {
        transform: none;
    }

    .article-card:hover .card-image img {
        transform: none;
    }

    .nav-list a:hover {
        background: transparent;
    }
}

/* ===== Live Analyst Feed ===== */
.analyst-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.analyst-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.analyst-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.analyst-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    border-color: var(--border-light);
}

.analyst-card:hover::before {
    background: var(--accent);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.analyst-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.analyst-avatar {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--accent);
    border: 1px solid var(--border-light);
    font-family: 'Outfit', sans-serif;
}

.analyst-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.analyst-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.analyst-firm {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stock-ticker {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-primary);
    border: 1px solid var(--border);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
}

.analyst-rank {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

.card-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

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

.card-body-row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stock-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.rating-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.status-badge-small {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.company-name {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rating-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.rating-buy {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.rating-sell {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.rating-neutral {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.2);
}

.price-targets {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.target-row {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0 0.5rem;
}

.target-row:not(:last-child) {
    border-right: 1px solid var(--border);
}

.target-row:last-child {
    align-items: flex-end;
    text-align: right;
}

.target-row .label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.target-row .value {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}

.target-row.upside-row .value {
    font-size: 1.125rem;
}

.text-green {
    color: #10b981;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.text-red {
    color: #ef4444;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}

.market-cap-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: -0.5rem;
}

.text-white {
    color: var(--text-primary);
    font-weight: 600;
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}

.feed-status {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--border);
}

.empty-state {
    text-align: center;
    padding: 5rem 1rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

@media (max-width: 600px) {
    .analyst-grid {
        grid-template-columns: 1fr;
    }

    .price-targets {
        padding: 0.875rem;
    }

    .target-row .value {
        font-size: 0.9375rem;
    }
}

/* ===== Signals Page ===== */
.signals-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--accent);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.tab-btn .badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    color: var(--text-muted);
}

.tab-btn.active .badge {
    color: var(--accent);
    background: rgba(0, 242, 255, 0.1);
    border-color: rgba(0, 242, 255, 0.2);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Signals Grid */
.signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.signal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.signal-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.pair-info {
    display: flex;
    flex-direction: column;
}

.pair-name {
    font-size: 1.125rem;
    font-weight: 700;
}

.signal-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.signal-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent);
    animation: pulse 2s infinite;
}

.status-pending {
    background: rgba(255, 165, 0, 0.1);
    color: orange;
}

.signal-action {
    padding: 1.5rem;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.action-label {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.action-price {
    font-size: 1rem;
    color: var(--text-primary);
    font-family: monospace;
}

.action-buy .action-label {
    color: var(--success);
}

.action-sell .action-label {
    color: var(--error);
}

.signal-levels {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.level-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.level-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.level-value {
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: monospace;
}

.tp-level .level-value {
    color: var(--success);
}

.sl-level .level-value {
    color: var(--error);
}

.signal-meta {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
}

.signal-comment {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
    border-top: 1px solid var(--border);
}

/* Signals Table */
.signals-table {
    width: 100%;
    border-collapse: collapse;
}

.signals-table th {
    text-align: left;
    padding: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.signals-table td {
    padding: 1rem;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--border);
}

.outcome-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.outcome-win {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.outcome-loss {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.outcome-neutral {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.font-bold {
    font-weight: 600;
}

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