/* Modern Premium Corporate Styles for Rockwool Platform */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --brand-primary: #FF5A00;
    /* Rockwool brand orange */
    --brand-dark: #cc4800;
    --brand-light: #ff7a33;

    --navy-900: #0f172a;
    --navy-800: #1e293b;
    --navy-700: #334155;

    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;

    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);

    --gradient-brand: linear-gradient(135deg, var(--brand-primary) 0%, #FF8A00 100%);
    --gradient-dark: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--slate-100);
    color: var(--navy-800);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--navy-900);
}

/* Hero bölümlerindeki başlıklar beyaz olmalı */
.page-hero h1,
.pkg-hero h1,
.blog-hero h1,
.fiyat-hero h1,
.portal-hero h1,
.manto-hero h1,
.package-hero h1,
.catalog-hero h1 {
    color: #fff !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* 
 * Header/Navbar base styles removed. 
 * All header styling is now managed inline in includes/header.php
 * to prevent CSS specificity conflicts.
 */

.logo-container {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.nav-actions {
    flex-shrink: 0;
}

/* Page Hero Banner */
.page-hero {
    background: var(--gradient-dark);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 90, 0, 0.1) 0%, rgba(30, 41, 59, 0) 70%);
    animation: pulse 10s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--slate-200);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.main-content {
    flex: 1;
    padding: 60px 0;
}

/* Base Card Style */
.base-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
}

.base-card.premium {
    border-top: 5px solid var(--brand-primary);
}

/* Unified Footer */
.main-footer {
    background: var(--navy-900);
    color: var(--slate-200);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--brand-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: var(--slate-500);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--slate-500);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a:hover {
    color: white;
}

/* UI Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--navy-800);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    background: var(--slate-100);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.1);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--navy-900);
    cursor: pointer;
    z-index: 1002;
    padding: 5px;
}

/* Off-canvas menu elements */
.offcanvas-drawer {
    box-sizing: border-box;
}

/* Off-canvas menu overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10001; /* Higher than header (10000) */
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* 
 * Global Responsive Utilities 
 * Mobile-First and Accessibility Optimizations
 */
.table-responsive {
    width: 100%;
    margin-bottom: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
}


/* ═══════════════════════════════════════════════════
   GLOBAL NAVIGATION LAYERS (Off-canvas)
   ═══════════════════════════════════════════════════ */
.offcanvas-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: white;
    z-index: 200000;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0,0,0,0.15);
    overflow: hidden;
}

.offcanvas-drawer.active {
    transform: translateX(0);
    visibility: visible;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 199999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Explicit Desktop Suppression */
@media (min-width: 1151px) {
    .offcanvas-drawer, .menu-overlay, .menu-toggle {
        display: none !important;
    }
}

@media (max-width: 1150px) {
    .nav-menu, .desktop-only-action {
        display: none !important;
    }
    .menu-toggle {
        display: flex !important;
        align-items: center; justify-content: center;
        width: 44px; height: 44px;
        background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .offcanvas-drawer { max-width: 100vw; }
}

/* Drawer UI Elements */
.drawer-header {
    position: sticky; top: 0; z-index: 10;
    padding: 25px 30px; display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #f1f5f9; background: white;
}
.drawer-close {
    width: 44px; height: 44px; background: #f1f5f9; border: none; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 0; }
.drawer-menu { list-style: none; padding: 0; margin: 0; }
.drawer-menu > li { border-bottom: 1px solid #f8fafc; }
.drawer-menu > li > a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 30px; color: #1e293b; font-weight: 700; font-size: 1.1rem; text-decoration: none;
}
.drawer-submenu {
    list-style: none; padding: 0; margin: 0; background: #f8fafc;
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out;
}
.drawer-has-dropdown.active > .drawer-submenu { max-height: 1000px; padding: 10px 0; }
.drawer-submenu li a { padding: 12px 30px 12px 45px; display: block; color: #64748b; font-weight: 600; text-decoration: none; }
.drawer-label { padding: 15px 30px 5px 45px; font-size: 0.75rem; font-weight: 800; color: #ea580c; text-transform: uppercase; }
.drawer-footer { padding: 30px; border-top: 1px solid #f1f5f9; }

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .base-card, .calc-card, .price-card { padding: 30px 20px !important; border-radius: 20px !important; }
    .page-hero { padding: 60px 20px; }
    .page-hero h1 { font-size: 2.2rem; letter-spacing: -1px; }
    .main-content { padding: 40px 0; }
    .tech-table, .data-table { display: block; width: 100%; }
    .tech-table tr { display: flex; flex-direction: column; padding: 15px 0; border-bottom: 1px solid #e2e8f0; }
    .tech-table td, .tech-table th { display: block; width: 100% !important; padding: 5px 0 !important; border: none !important; }
    .grid-2, .grid-3, .grid-4 { display: flex !important; flex-direction: column !important; gap: 20px !important; }
}

/* 
 * Premium UI Enhancements 
 */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.shadow-premium {
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
}

.hover-lift {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

/* Compact Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* 
 * Guide & Documentation Components 
 * Used in rehber-secim, rehber-uygulama and other technical docs
 */
.guide-section {
    position: relative;
    padding-bottom: 100px;
}

/* Custom Hero for Guides */
.hero-premium {
    position: relative;
    padding: 120px 0 180px;
    background: var(--navy-900);
    color: white;
    overflow: hidden;
    text-align: left;
}

.hero-premium .hero-image-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
}

.hero-premium .hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 100%);
}

.hero-premium .container {
    position: relative;
    z-index: 10;
}

.hero-premium h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: white !important;
}

.hero-premium p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    line-height: 1.6;
}

/* Badges */
.badge-premium {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 90, 0, 0.15);
    border: 1px solid rgba(255, 90, 0, 0.3);
    color: var(--brand-primary);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

/* Unified Guide Card */
.guide-card-premium {
    background: white;
    border-radius: 32px;
    padding: 60px;
    box-shadow: 0 40px 100px -20px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--slate-200);
    margin-top: -120px;
    position: relative;
    z-index: 20;
}

/* Technical Grids */
.tech-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.tech-card-item {
    padding: 30px;
    background: var(--slate-100);
    border-radius: 20px;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card-item:hover {
    border-color: var(--brand-primary);
    background: white;
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.tech-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Data Tables */
.data-table-premium-wrapper {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: 24px;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
}

.data-table-premium {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table-premium th {
    background: var(--navy-900);
    color: white;
    padding: 24px 20px;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-table-premium td {
    padding: 20px;
    border-bottom: 1px solid var(--slate-200);
    font-size: 1rem;
}

/* FAQ Accordion Base */
.faq-wrap {
    background: var(--soft-gray);
    border-radius: 24px;
    padding: 40px;
    margin-top: 60px;
}

.faq-item-premium {
    padding: 24px 0;
    border-bottom: 1px solid var(--slate-200);
}

.faq-item-premium:last-child { border-bottom: none; }

.faq-q {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-900);
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.faq-q span { color: var(--brand-primary); }

.faq-a {
    color: var(--slate-500);
    line-height: 1.8;
    padding-left: 30px;
}

/* Stepper Component */
.step-item-premium {
    display: flex;
    gap: 30px;
    padding-bottom: 50px;
    margin-bottom: 50px;
    border-bottom: 1px dashed var(--slate-200);
}

.step-item-premium:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.step-circle {
    width: 60px;
    height: 60px;
    background: var(--navy-900);
    color: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.info-alert-premium {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 30px;
    border-radius: 20px;
    margin-top: 20px;
}

/* Responsive Overrides for Guides */
@media (max-width: 991px) {
    .hero-premium h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hero-premium { padding: 100px 0 140px; text-align: center; }
    .hero-premium p { margin: 0 auto; }
    .hero-premium h1 { font-size: 2.2rem; }
    .guide-card-premium { padding: 40px 20px; margin-top: -80px; }
    .step-item-premium { flex-direction: column; gap: 20px; align-items: center; text-align: center; }
}

/* 
 * Price Matrix Components 
 * Used in shared/page/price-matrix.php
 */
.price-matrix-page { max-width: 1280px; margin: 0 auto; padding: 40px 20px 80px; width: 100%; box-sizing: border-box; }
.matrix-hero { text-align: center; margin-bottom: 50px; }
.matrix-hero h1 { font-family: 'Outfit', sans-serif; font-size: 3.5rem; font-weight: 800; color: var(--navy-900); margin-bottom: 20px; }
.matrix-hero p { color: var(--slate-500); font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; line-height: 1.6; }

.m3-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--gradient-dark); color: white;
    padding: 14px 28px; border-radius: 16px; font-weight: 700; font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
}

.matrix-wrapper { 
    overflow-x: auto; 
    border-radius: 24px; 
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--slate-200);
    background: white;
    position: relative;
    margin-top: 40px;
}

.matrix-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 1000px; }
.matrix-table th, .matrix-table td { padding: 24px 20px; text-align: center; border-bottom: 1px solid var(--slate-100); }

.matrix-table thead th {
    background: var(--navy-900); color: white; font-family: 'Outfit', sans-serif;
    font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px;
    position: sticky; top: 0; z-index: 10;
}

.matrix-table tbody tr:hover { background: #f8fafc; }

.matrix-table td:first-child {
    text-align: left; font-weight: 700; color: var(--navy-900); font-family: 'Outfit', sans-serif;
    border-right: 2px solid var(--slate-200); background: #fffcf9;
    position: sticky; left: 0; z-index: 5;
    width: 200px;
}

.cell-price { font-weight: 800; color: var(--brand-primary); font-size: 1.25rem; font-family: 'Outfit', sans-serif; }
.cell-wholesale { display: block; font-size: 0.85rem; color: var(--slate-500); font-weight: 600; margin-top: 4px; }

.scroll-hint {
    display: none;
    text-align: center;
    background: #fff7ed;
    color: var(--brand-primary);
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px dashed var(--brand-primary);
}

@media (max-width: 900px) {
    .price-matrix-page { padding: 20px 15px; }
    .matrix-hero h1 { font-size: 2.2rem; }
    .matrix-hero p { font-size: 1.05rem; }
    .matrix-table th, .matrix-table td { padding: 15px 10px; }
    .cell-price { font-size: 1.1rem; }
    .scroll-hint { display: block; }
}
