/*
Theme Name: Fokusz Magazin
Theme URI: https://example.com/fokusz
Author: ChatGPT
Author URI: https://example.com
Description: Reszponzív magazin téma a Fokusz arculat alapján.
Version: 1.0.0
Text Domain: fokusz
*/

/* Base typography and colors (fallback without Tailwind) */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #0B1120;
    color: #ffffff;
    font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.6;
    padding-top: calc(var(--info-bar-height, 44px) + 72px);
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", "Times New Roman", serif;
    color: #ffffff;
    margin: 0 0 0.6em;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Basic layout helpers used in markup */
.container {
    width: min(1200px, 100%);
    margin-inline: auto;
}

@media (min-width: 768px) {
    .container {
        padding-inline: 0;
    }
}

/* Utility fallback classes to ensure key colors show up */
.bg-lumina-dark {
    background-color: #0B1120;
}
.bg-lumina-navy {
    background-color: #1e293b;
}
.bg-lumina-primary {
    background-color: #FACC15;
}
.text-lumina-primary {
    color: #FACC15;
}
.text-white {
    color: #ffffff;
}
.text-gray-400 {
    color: #9ca3af;
}
.text-gray-500 {
    color: #6b7280;
}
.font-serif {
    font-family: "Playfair Display", "Times New Roman", serif;
}
.font-sans {
    font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Info bar */
.info-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 45;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 12px;
}

.info-bar__container {
    max-width: min(1200px, 100%);
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
    justify-content: space-between;
}

.info-bar__section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.info-bar__label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #94a3b8;
}

.info-bar__content {
    font-weight: 600;
    color: #ffffff;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.site-nav {
    top: var(--info-bar-height, 44px);
}

/* Logo sizing */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo-link img {
    width: auto;
    height: auto;
    max-height: 40px;
    max-width: 220px;
}

@media (min-width: 768px) {
    .custom-logo-link img {
        max-height: 48px;
        max-width: 260px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0B1120;
}
::-webkit-scrollbar-thumb {
    background: #FACC15;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #EAB308;
}

/* Selection */
::selection {
    background: #FACC15;
    color: #0B1120;
}

/* Image hover zoom */
.image-hover-zoom {
    overflow: hidden;
}
.image-hover-zoom img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.image-hover-zoom:hover img {
    transform: scale(1.1);
}

/* Text outline */
.text-outline {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    color: transparent;
}

/* Background noise */
.bg-noise {
    position: relative;
}
.bg-noise::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Dropcap */
.dropcap::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    font-weight: 700;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    color: #FACC15;
    font-family: "Playfair Display", serif;
}

/* Line clamp helpers (Tailwind plugin replacement) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Vertical label */
.writing-vertical {
    writing-mode: vertical-rl;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Article content formatting */
.prose {
    color: #cbd5f5;
    font-size: 1rem;
    line-height: 1.8;
}

.prose h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.prose h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin: 0 0 1.5rem;
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose a {
    color: #FACC15;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: #FEF08A;
}

.prose ul,
.prose ol {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    border-left: 4px solid #FACC15;
    background: rgba(30, 41, 59, 0.6);
    color: #ffffff;
    font-style: italic;
}

.prose strong {
    color: #ffffff;
    font-weight: 700;
}

.prose img {
    border-radius: 0.75rem;
    margin: 2rem 0 0.5rem;
}

.prose figcaption {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
}

/* Image readability overlay */
.image-overlay {
    background: rgba(11, 17, 32, 0.55);
}

/* Pagination styling */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 12px;
    font-weight: 700;
    color: #cbd5f5;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.6);
    transition: all 0.2s ease;
}

.page-numbers:hover {
    color: #0B1120;
    background: #FACC15;
    border-color: #FACC15;
}

.page-numbers.current {
    color: #0B1120;
    background: #FACC15;
    border-color: #FACC15;
}

.page-numbers.dots {
    border: none;
    background: transparent;
    width: auto;
    padding-inline: 6px;
}
