:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary: #fbbf24;
    --accent: #00d9ff;
    --bg-black: #000000;
    --bg-dark: #0a0a0a;
    --surface: #1a1a1a;
    --surface-light: #252525;
    --border: #2a2a2a;
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --text-dim: #707070;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-black);
    color: var(--text);
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    padding-top: 20px;
    padding-bottom: 20px;
}

.navbar-custom.scrolled {
    box-shadow: 0 4px 30px rgba(255, 107, 53, 0.1);
    border-bottom-color: var(--primary);
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: none;
}

.logo-box {
    width: 200px;
    height: 70px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.3rem;
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-link-custom {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link-custom.active {
    color: var(--primary) !important;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
    color: white;
}

.reading-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.1s ease;
}

/* Error State */
.error-state {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
}

.error-icon {
    font-size: 5rem;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    color: var(--text);
}

/* Breadcrumb */
.breadcrumb-section {
    padding: 120px 0 1.5rem;
    background: var(--bg-dark);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: '›';
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--primary);
}

/* Article Header */
.article-header {
    padding: 2rem 0 3rem;
    background: var(--bg-dark);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.article-category {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, #dc2626 100%);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.article-date,
.article-read-time {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-excerpt {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.author-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 700;
    margin: 0;
}

.author-title {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.article-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    color: var(--text);
}

.action-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 1.25rem;
}

/* Article Hero */
.article-hero {
    padding: 3rem 0;
    background: var(--bg-black);
}

.article-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.article-content-section {
    padding: 4rem 0;
    background: var(--bg-black);
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.sidebar-title {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toc-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.toc-link:hover,
.toc-link.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: rgba(255, 107, 53, 0.05);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.share-buttons-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.share-mini {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-dark);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
}

.share-mini:hover {
    transform: translateY(-3px);
}

.share-mini.twitter:hover {
    background: #000000;
    border-color: #000000;
}

.share-mini.linkedin:hover {
    background: #0077B5;
    border-color: #0077B5;
}

.share-mini.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

.share-mini.copy:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Article Body */
.article-body {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-muted);
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body strong {
    font-weight: 700;
    color: var(--text);
}

.article-body a {
    color: var(--primary);
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

/* Social Share Section */
.social-share-section {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    margin: 3rem 0;
}

.share-btn-large {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
}

.share-btn-large:hover {
    transform: translateY(-5px);
}

.share-btn-large i {
    font-size: 2rem;
}

.share-btn-large.twitter:hover {
    background: #000000;
}

.share-btn-large.linkedin:hover {
    background: #0077B5;
}

.share-btn-large.whatsapp:hover {
    background: #25D366;
}

.share-btn-large.copy:hover {
    background: var(--primary);
}

/* Author Bio */
.author-bio-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    margin: 3rem 0;
}

.author-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
}

.author-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Related Articles */
.related-articles-section {
    padding: 5rem 0;
    background: var(--bg-dark);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #dc2626 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.05) 35px,
            rgba(255, 255, 255, 0.05) 70px);
}

.cta-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.cta-icon {
    font-size: 4rem;
}

.btn-white {
    background: white;
    color: var(--primary);
    padding: 1.2rem 2.5rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-white:hover {
    transform: translateY(-5px);
    color: var(--primary);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1.2rem 2.5rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Footer */
.footer {
    background: #050505;
    border-top: 1px solid var(--border);
    padding: 5rem 0 2rem;
}

.footer-logo .logo-box {
    width: 80px;
    height: 80px;
}

.footer-tagline {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
    padding-left: 5px;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .article-actions {
        width: 100%;
    }
}