/**
 * Magyar Kerámia Szövetség - Frontend Styles
 * ===========================================
 */

/* ===========================================
   CSS Variables
   =========================================== */
:root {
    --ceramic-terracotta: #A0522D;  /* terra */
    --ceramic-terracotta-light: #f5e6e0; /* világos terra háttér */
    --ceramic-clay: #C57B57;        /* világosabb cserép */
    --ceramic-clay-dark: #8f4729;   /* sötétebb cserép */
    --ceramic-ivory: #F8F4EA;       /* törtfehér */
    --ceramic-ink: #1F2937;         /* palaszürke */
    --ceramic-sand: #E9DED4;        /* homok */
    --ceramic-olive: #6B723F;       /* mohazöld akcent */
    --ceramic-text: #1F2937;        /* szöveg szín */
    --ceramic-text-muted: #6B7280;  /* halvány szöveg */
    --shadow-soft: 0 10px 25px rgba(0,0,0,.08);
    --radius-xl: 1.25rem;
}

/* ===========================================
   Base Styles
   =========================================== */
html, body {
    height: 100%;
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--ceramic-ink);
    background: linear-gradient(180deg, var(--ceramic-ivory), #fff);
}

/* ===========================================
   Navbar
   =========================================== */
.navbar {
    backdrop-filter: saturate(140%) blur(8px);
    background: rgba(255,255,255,.85) !important;
    box-shadow: var(--nav-shadow, none);
}

.navbar-brand span.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    margin-right: .5rem;
    background: radial-gradient(circle at 30% 30%, #C57B57 0%, #A0522D 60%, #6B3D22 100%);
    color: #fff;
    font-weight: 800;
}

.nav-link {
    font-weight: 600;
}

.btn-cta {
    background: var(--ceramic-terracotta);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .6rem 1rem;
    box-shadow: 0 6px 18px rgba(160,82,45,.35);
}

.btn-cta:hover {
    background: #8f4729;
    color: #fff;
}

/* User Menu Button */
.user-menu-btn {
    margin-left: 6px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ceramic-terracotta-light);
    color: var(--ceramic-terracotta);
    border: 2px solid var(--ceramic-terracotta);
    font-size: 1.25rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.user-menu-btn:hover {
    background: var(--ceramic-terracotta);
    color: #fff;
}

.user-menu-btn img {
    border: 2px solid var(--ceramic-terracotta);
}

/* ===========================================
   Hero Slider
   =========================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    isolation: isolate;
}

.hero-slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-slide-1::before {
    background-image: url('https://hypeandhyper.com/content/images/2022/06/laufer_relief_interior-1.jpg');
}

.hero-slide-2::before {
    background-image: url('https://images.prismic.io/nutec/febcfa44-5b14-461e-9f69-0b761fdd5853_image-Hornos+Drop+Bottom.png?auto=compress,format');
}

.hero-slide-3::before {
    background-image: url('https://www.ceramtec-group.com/fileadmin/_processed_/4/b/csm_CeramTec_Group_Products_Solutions_2025_d23f9ff32f.jpg');
}

.hero-slide-4::before {
    background-image: url('https://diningguide.hu/wp-content/uploads/2023/11/herendi-porcelain-hungary-manufactory.jpg');
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.hero-content .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.hero-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.hero-nav-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-nav-dot.active {
    background: white;
    transform: scale(1.2);
}

.hero-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

.hero-arrow-left {
    left: 30px;
}

.hero-arrow-right {
    right: 30px;
}

.hero-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* ===========================================
   Section Styles
   =========================================== */
section {
    padding: 4.5rem 0;
}

.section-title {
    font-family: 'Merriweather', serif;
    font-weight: 800;
    letter-spacing: -.02em;
}

.section-desc {
    max-width: 62ch;
}

/* ===========================================
   Cards
   =========================================== */
.feature-card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.feature-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ceramic-sand), #fff);
    border: 1px solid #efe7df;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

/* ===========================================
   Partners Carousel
   =========================================== */
.partners-carousel-section {
    background: #fff;
    border-bottom: 1px solid var(--ceramic-sand);
}

.partners-carousel-section .carousel-item a {
    display: block;
    padding: 0 10px;
    transition: opacity 0.3s ease;
}

.partners-carousel-section .carousel-item a:hover {
    opacity: 0.7;
}

.partners-carousel-section .carousel-item img {
    width: 100%;
    height: auto;
}


/* ===========================================
   Accent Strip
   =========================================== */
.strip {
    background: linear-gradient(90deg, var(--ceramic-terracotta) 0%, var(--ceramic-clay) 50%, var(--ceramic-olive) 100%);
    color: #fff;
}

/* ===========================================
   Timeline
   =========================================== */
.timeline {
    border-left: 3px solid var(--ceramic-terracotta);
    padding-left: 1.25rem;
}

.timeline .t-item {
    position: relative;
    margin-bottom: 1.35rem;
}

.timeline .t-item::before {
    content: "";
    position: absolute;
    left: -1.11rem;
    top: .35rem;
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    background: var(--ceramic-terracotta);
    box-shadow: 0 0 0 4px rgba(160,82,45,.15);
}

/* ===========================================
   Gallery
   =========================================== */
.gallery img {
    border-radius: .75rem;
    box-shadow: var(--shadow-soft);
}

/* ===========================================
   Footer
   =========================================== */
footer {
    background: #0f172a;
    color: #cbd5e1;
}

footer a {
    color: #e2e8f0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

/* ===========================================
   Animations & Effects
   =========================================== */
.lift {
    transition: .25s ease transform, .25s ease box-shadow;
}

.lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.reveal {
    animation: fadeSlideUp .7s ease both;
}

/* ===========================================
   Utility Classes
   =========================================== */
.bg-paper {
    background: #F9F5ED !important;
}

.bg-subtle-terracotta {
    background: #F9F5ED !important;
}

.bg-warm-ivory {
    background: #FEFDFC !important;
}

.bg-ceramic-gradient {
    background: #F9F5ED !important;
}

.bg-neutral-warm {
    background: #FEFDFC !important;
}

.badge-soft {
    background: rgba(160,82,45,.08);
    color: var(--ceramic-terracotta);
    border: 1px solid rgba(160,82,45,.2);
}

.object-fit-cover {
    object-fit: cover;
}

/* ===========================================
   Forms
   =========================================== */
.form-control,
.form-select {
    border-radius: .8rem;
}

.btn-outline-terracotta {
    border-color: var(--ceramic-terracotta);
    color: var(--ceramic-terracotta);
}

.btn-outline-terracotta:hover {
    background: var(--ceramic-terracotta);
    color: #fff;
}

/* ===========================================
   Blog - Hero Section
   =========================================== */
.blog-hero {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* ===========================================
   Blog - Featured Cards
   =========================================== */
.featured-card {
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ===========================================
   Blog - Post Cards
   =========================================== */
.blog-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.blog-card a {
    display: block;
    height: 100%;
}

/* ===========================================
   Blog - Pagination
   =========================================== */
.pagination {
    gap: 0.5rem;
}

.pagination .page-link {
    border-radius: 0.5rem;
    border: 1px solid var(--ceramic-sand);
    color: var(--ceramic-terracotta);
    padding: 0.5rem 1rem;
}

.pagination .page-link:hover {
    background: var(--ceramic-terracotta);
    border-color: var(--ceramic-terracotta);
    color: white;
}

.pagination .page-item.active .page-link {
    background: var(--ceramic-terracotta);
    border-color: var(--ceramic-terracotta);
}

.pagination .page-item.disabled .page-link {
    color: var(--ceramic-sand);
}

/* ===========================================
   Blog - Article (Show Page)
   =========================================== */
.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ceramic-ink);
}

.article-body h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--ceramic-ink);
}

.article-body h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--ceramic-ink);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    margin: 2rem 0;
    box-shadow: var(--shadow-soft);
}

.article-body blockquote {
    border-left: 4px solid var(--ceramic-terracotta);
    padding: 1rem 0 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
    background: var(--ceramic-ivory);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body a {
    color: var(--ceramic-terracotta);
    text-decoration: underline;
}

.article-body a:hover {
    color: var(--ceramic-clay);
}

.article-body pre {
    background: var(--ceramic-ink);
    color: #e5e7eb;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    overflow-x: auto;
    margin: 2rem 0;
}

.article-body code {
    background: var(--ceramic-sand);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.article-body pre code {
    background: transparent;
    padding: 0;
}

/* ===========================================
   Responsive - Tablet
   =========================================== */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-arrows {
        display: none;
    }

    .hero-nav {
        bottom: 20px;
    }
}

/* ===========================================
   Responsive - Mobile
   =========================================== */
@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }
}

