/* =============================================================
   JetWeb CMS — Frontend Tema CSS
   CSS Custom Properties (Design Tokens) kullanan modüler stil.
   ============================================================= */

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

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary, 'Poppins', sans-serif);
    color: var(--color-text, #333);
    background: var(--color-bg, #fff);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Fix mobile menu slow animation bug */
.navbar-collapse.collapsing {
    transition: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary, 'Sora', sans-serif);
    color: var(--color-heading, var(--color-secondary, #1a1a2e));
    line-height: 1.3;
}

a {
    color: var(--color-primary, #C4975C);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-secondary, #1a1a2e);
}

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

/* ─── Navbar ─── */

/* ─── Hero ─── */
.cms-hero {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #2d2d5e 50%, var(--color-primary) 100%);
    padding: 7rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.cms-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    animation: float 8s ease-in-out infinite;
}

.cms-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -8%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

.cms-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.cms-hero h1 span {
    color: var(--color-primary);
}

.cms-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin-bottom: 2rem;
}

.btn-hero {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 14px 38px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* ─── Stats Bar ─── */
.cms-stats {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1rem;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.stat-item {
    text-align: center;
    padding: 1rem 0.5rem;
}

.stat-item .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-secondary);
}

.stat-item .stat-label {
    font-size: 0.88rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* ─── Section ─── */
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 3rem;
}

/* ─── Content Card ─── */
.content-card {
    background: #fff;
    border-radius: var(--border-radius, 16px);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.content-card .card-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f1f5f9;
}

.content-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.content-card:hover .card-thumb img {
    transform: scale(1.06);
}

.content-card .card-body {
    padding: 1.5rem;
}

.content-card .card-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(196, 151, 92, 0.1);
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.content-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.content-card h3 a {
    color: var(--color-secondary);
    text-decoration: none;
}

.content-card h3 a:hover {
    color: var(--color-primary);
}

.content-card p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.6;
}

.content-card .card-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    margin-top: 0.75rem;
}

/* ─── CTA Section ─── */
.cms-cta {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #2d2d5e 100%);
    padding: 5rem 0;
    margin-top: 4rem;
}

.cms-cta h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.cms-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

/* ─── Footer ─── */
.cms-footer {
    background: #0f0f23;
    color: rgba(255, 255, 255, 0.5);
    padding: 5rem 0 2rem;
    font-size: 0.92rem;
}

.cms-footer h5 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.cms-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-primary);
}

.cms-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

.cms-footer a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.cms-footer .footer-nav a {
    display: block;
    padding: 6px 0;
}

.cms-footer .footer-social {
    margin-top: 1.5rem;
}

.cms-footer .footer-social a {
    display: inline-flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    margin-right: 12px;
    font-size: 1.2rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.cms-footer .footer-social a:hover {
    transform: translateY(-8px) scale(1.1);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.cms-footer .social-facebook:hover {
    background: #3b5998 !important;
    border-color: #3b5998 !important;
}

.cms-footer .social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border-color: #dc2743 !important;
}

.cms-footer .social-linkedin:hover {
    background: #0077b5 !important;
    border-color: #0077b5 !important;
}

.cms-footer .social-twitter:hover {
    background: #000 !important;
    border-color: #333 !important;
}

/* FontAwesome 6 X-Twitter İkonu Zorlaması */
.fa-x-twitter::before {
    content: "\e61b";
    /* X-Twitter unicode */
    font-family: "Font Awesome 6 Brands" !important;
}

/* Copyright Badge İyileştirmesi */
.footer-copyright-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.footer-copyright-badge:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ─── Shortcode Specific Styles ─── */


.jetweb-contact-form-wrapper {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius, 20px);
}

.jetweb-contact-form .form-control {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px !important;
    font-size: 0.95rem;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.jetweb-contact-form .form-control:focus {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(196, 151, 92, 0.1);
    outline: none;
}

.jetweb-contact-form button[type="submit"].btn-primary {
    background: var(--color-primary);
    border: none;
    border-radius: 12px;
    padding: 16px !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.jetweb-contact-form button[type="submit"].btn-primary:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.jetweb-contact-form button[type="submit"].btn-primary:active {
    transform: translateY(-1px);
}

/* ─── Empty State ─── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.4;
}

.empty-state h3 {
    color: #64748b;
    margin-bottom: 0.5rem;
}

/* ─── Content Render (Editor.js output) ─── */
.content-body h2 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
}

.content-body h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem;
}

.content-body p {
    margin-bottom: 1rem;
}

.content-body ul,
.content-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

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

.content-body figure.content-image {
    margin: 2rem 0;
    text-align: center;
}

.content-body figure.content-image img {
    border-radius: var(--border-radius);
    max-width: 100%;
}

.content-body figure.content-image.image-stretched img {
    width: 100%;
}

.content-body figure.content-image.image-border img {
    border: 2px solid #e2e8f0;
}

.content-body figure.content-image figcaption {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.content-body blockquote.content-quote {
    border-left: 4px solid var(--color-primary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #f8fafc;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.content-body blockquote cite {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-style: normal;
}

.content-body pre.content-code {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    font-size: 0.88rem;
    margin: 1.5rem 0;
}

.content-body .content-warning {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--color-primary);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.content-body .content-warning::before {
    content: '\f132';
    /* Shield icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.1;
    font-size: 2rem;
}

.content-warning strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ─── Modern Single Page UI ─── */
.content-hero {
    background: #f8fafc;
    padding: 6rem 0 4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 4rem;
    text-align: center;
}

.content-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
    letter-spacing: -0.02em;
}

.content-hero .lead {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: #64748b;
    font-size: 1.15rem;
    line-height: 1.6;
}

.content-meta-pills {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.content-meta-pills .pill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #edf2f7;
}

.content-meta-pills i {
    color: var(--color-primary);
}

.content-featured-image {
    max-width: 1000px;
    margin: 2rem auto 4rem;
    position: relative;
    z-index: 10;
    padding: 0 1.5rem;
}

.content-featured-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border: 8px solid #fff;
}

.modern-content-wrapper {
    width: 100%;
    padding: 0;
}

.modern-content-wrapper .editor-content {
    font-size: 1.125rem;
    line-height: 1.85;
    color: #334155;
}

.modern-content-wrapper .editor-content p {
    margin-bottom: 1.75rem;
}

@media (max-width: 768px) {
    .content-hero {
        padding: 4rem 1rem 3rem;
    }

    .content-featured-image {
        margin-top: -3rem;
    }

    .content-meta-pills {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .jetweb-contact-form-wrapper {
        padding: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }
}