/* ========== World Class Polish (Exact Port) ========== */
:root {
    --theme-magenta: #f41369;
    --theme-blue: #00c6ff;
    --theme-blue-gradient: linear-gradient(90deg, #00c6ff, #0072ff);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-light: rgba(30, 30, 35, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --primary-gradient: linear-gradient(-45deg, #f41369, #b300b3, #800080, #5802d8);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --border-radius: 24px;
    --border-radius-sm: 16px;
}

/* --- Base & Scrollbar --- */
body {
    background-color: #050505;
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 12px;
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border: 3px solid #050505;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--theme-magenta);
}

/* --- Typography --- */
h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-transform: uppercase;
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-dot-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    display: none;
    /* JS will toggle */
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    mix-blend-mode: difference;
}

.cursor-dot-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

/* Hover Expansion */
body:has(a:hover) .cursor-dot-outline,
body:has(button:hover) .cursor-dot-outline,
body:has(.card:hover) .cursor-dot-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* --- Dynamic Background --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    background: #050505;
    opacity: 0;
    animation: fadeInCanvas 0.8s ease-in forwards 0.3s;
}

@keyframes fadeInCanvas {
    to {
        opacity: 1;
    }
}

/* --- Cinematic Hero Styles --- */
.ar-article-hero {
    position: relative;
    width: 100%;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 80px;
    padding-top: 150px;
    color: white !important;
}

.ar-hero-fog {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1.0) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    z-index: 1;
}

/* Breadcrumbs (Refined - Text Links + Active Badge) */
.ar-hero-breadcrumb.nl-style {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    align-items: center;
}

.ar-hero-breadcrumb.nl-style a {
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 5px 0;
}

.ar-hero-breadcrumb.nl-style a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.ar-hero-breadcrumb.nl-style .active-badge {
    background: linear-gradient(90deg, #00c6ff, #f41369);
    /* Blue/Magenta Gradient */
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
}

.ar-hero-breadcrumb.nl-style .sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* --- Modern Navbar --- */
.modern-nav {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.modern-nav .nav-link:hover,
.modern-nav .nav-link.active {
    color: white;
}

.modern-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(-45deg, #5802d8, #f41369);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.modern-nav .nav-link:hover::after {
    width: 80%;
}

/* --- Mobile Toggler --- */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1051;
    transition: transform 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M6 24L24 6'/%3e%3c/svg%3e") !important;
    transform: rotate(90deg);
}

/* --- Block Wrappers (Content Areas) --- */
.block-wrapper {
    margin-bottom: 2rem;
    position: relative;
}

.block-wrapper img {
    border-radius: var(--border-radius-sm, 16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.block-wrapper img:hover {
    transform: scale(1.01);
    border-color: rgba(255, 255, 255, 0.3);
}

/* --- Liquid Footer --- */
.liquid-footer {
    background: linear-gradient(to right, rgba(0, 198, 255, 0.1) 0%, #000 30%);
    /* Blue tint */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.poly-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 80%, rgba(9, 9, 121, 0.4) 0%, rgba(0, 0, 0, 0) 50%);
    opacity: 0.8;
    z-index: 0;
}

/* --- Reading Progress --- */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 10000;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
}

/* Clean cards */
.ar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* --- Search Form (Migrated) --- */
.custom-search-form {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.custom-search-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    padding: 4px 12px 4px 32px !important;
    color: white !important;
    width: 160px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
}

.custom-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.custom-search-input:focus {
    width: 200px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    outline: none;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    z-index: 5;
    font-size: 0.9rem;
}

/* --- Accent Buttons (Footer Vibes) --- */
.btn-primary,
.btn-accent {
    background: linear-gradient(45deg, #00c6ff, #f41369) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 19, 105, 0.5);
    background: linear-gradient(45deg, #f41369, #00c6ff) !important;
    /* Swap gradient */
}


.active-badge {
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
}

.ar-hero-breadcrumb.nl-style .sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* --- Modern Navbar --- */
.modern-nav {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.modern-nav .nav-link:hover,
.modern-nav .nav-link.active {
    color: white;
}

.modern-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(-45deg, #5802d8, #f41369);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.modern-nav .nav-link:hover::after {
    width: 80%;
}

/* --- Mobile Toggler --- */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1051;
    transition: transform 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M6 24L24 6'/%3e%3c/svg%3e") !important;
    transform: rotate(90deg);
}

/* --- Block Wrappers (Content Areas) --- */
.block-wrapper {
    margin-bottom: 2rem;
    position: relative;
}

.block-wrapper img {
    border-radius: var(--border-radius-sm, 16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.block-wrapper img:hover {
    transform: scale(1.01);
    border-color: rgba(255, 255, 255, 0.3);
}

/* --- Liquid Footer --- */
.liquid-footer {
    background: linear-gradient(to right, rgba(0, 198, 255, 0.1) 0%, #000 30%);
    /* Blue tint */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.poly-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 80%, rgba(9, 9, 121, 0.4) 0%, rgba(0, 0, 0, 0) 50%);
    opacity: 0.8;
    z-index: 0;
}

/* --- Reading Progress --- */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 10000;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
}

/* Clean cards */
.ar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* --- Search Form (Migrated) --- */
.custom-search-form {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.custom-search-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    padding: 4px 12px 4px 32px !important;
    color: white !important;
    width: 160px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
}

.custom-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.custom-search-input:focus {
    width: 200px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    outline: none;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    z-index: 5;
    font-size: 0.9rem;
}

/* --- Accent Buttons (Footer Vibes) --- */
.btn-primary,
.btn-accent {
    background: linear-gradient(45deg, #00c6ff, #f41369) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 19, 105, 0.5);
    background: linear-gradient(45deg, #f41369, #00c6ff) !important;
    /* Swap gradient */
}

.active-badge {
    background: linear-gradient(90deg, #00c6ff, #f41369) !important;
    color: white !important;
    border: none !important;
}

/* ========== Share Buttons (Anton Retro Style) ========== */
.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.share-x:hover {
    background: #000000 !important;
}

.share-fb:hover {
    background: #1877F2 !important;
}

.share-rd:hover {
    background: #FF4500 !important;
}

.share-wa:hover {
    background: #25D366 !important;
}

.share-cp:hover {
    background: #6c757d !important;
}

/* Ensure hero text color is forced white (matches AntonRetro) */
.ar-article-hero h1,
.ar-article-hero p,
.ar-article-hero span,
.ar-article-hero i {
    color: white !important;
}