/* ================================================================
   MİL ALÜMİNYUM CEPHE SİSTEMLERİ
   ================================================================
    * Designer          : ONR6NKOC
    * Module            : Design & Web Tasarım  PHP / CSS/ ASP
    * Version           : 2.5.0 (Galeri ve Kurumsal Uyum)
    * Contact           : onr6nkoc@gmail.com / +90 546 914 60 79 
    * Description       : Mil Alüminyum Cephe Sistemleri Kurumsal CSS
   ================================================================ */

:root {
    --primary-color: #0f172a;
    --secondary-color: #334155;
    --accent-color: #38bdf8;
    --line-color: #e2e8f0;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #0f1720;
    color: #ffffff;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden !important;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(15, 23, 32, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    user-select: none;
    flex-shrink: 0;
}

.logo-container img {
    height: 70px;
    width: auto;
    display: block;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

/* MENU */
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    user-select: none;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    transition: var(--transition);
    border-radius: 4px;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

nav ul li ul {
    position: absolute;
    top: 35px;
    left: 0;
    background: var(--primary-color);
    display: none;
    flex-direction: column;
    min-width: 200px;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    padding: 5px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

nav ul li:hover ul {
    display: flex;
}

nav ul li ul li a {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav ul li ul li:last-child a {
    border-bottom: none;
}

/* --- Hamburger Menü Butonu --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
    z-index: 1001;
    background: none;
    border: none;
    flex-shrink: 0;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Mobil Menü --- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    padding: 90px 25px 40px 25px;
    box-sizing: border-box;
    overflow-y: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: #ffffff;
}

/* Mobil Dropdown */
.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    color: #e2e8f0;
    font-size: 1.2rem;
    font-weight: 500;
    background: none;
    border: none;
    font-family: inherit;
    text-align: left;
}

.mobile-dropdown-toggle .arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #94a3b8;
}

.mobile-dropdown-toggle .arrow.open {
    transform: rotate(180deg);
}

.mobile-sub-menu {
    display: none;
    flex-direction: column;
    padding-left: 20px;
    width: 100%;
}

.mobile-sub-menu.open {
    display: flex;
}

.mobile-sub-menu a {
    font-size: 1rem;
    padding: 10px 0;
    border-bottom: none;
    color: #94a3b8;
}

.mobile-sub-menu a:hover {
    color: #ffffff;
}

/* Mobil menü overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

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

/* HERO SLIDER */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.hero:active {
    cursor: grabbing;
}

.slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.4s ease-out;
}

.slide {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    flex-shrink: 0;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-text {
    position: absolute;
    bottom: 120px;
    left: 60px;
    z-index: 2;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 42px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-text p {
    margin-top: 12px;
    color: #cfd8dc;
    font-size: 16px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* SUB-HERO */
.sub-hero {
    height: 45vh;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: flex-end;
    padding-bottom: 40px;
}

.sub-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 32, 0.65);
}

.sub-hero-text {
    position: relative;
    z-index: 2;
    padding: 0 40px;
}

/* CARDS */
.section {
    padding: 80px 40px;
    background: #0b1118;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent-color);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: #121c28;
    border: 1px solid #1f2d3a;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card .content {
    padding: 15px;
}

.card h3 {
    margin-bottom: 8px;
    font-size: 12px;
}

.card p {
    font-size: 13px;
    color: #b0bec5;
}

/* ================================================================
   GALERİ SAYFASI STILLERİ
   ================================================================ */

/* Hero Tabela */
.corporate-hero-tabela {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    margin-top: 100px;
}

.corporate-hero-tabela .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.95) 100%);
    z-index: 1;
}

.corporate-hero-tabela .hero-text-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: #ffffff;
    padding: 0 40px 50px 50px;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}

.corporate-hero-tabela .hero-text-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.corporate-hero-tabela .hero-text-content p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: #bae6fd;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Galeri Alanı */
.gallery-section {
    max-width: 1200px;
    margin: 60px auto 100px auto;
    padding: 0 20px;
}

/* Filtre Butonları */
.gallery-filter-container {
    position: relative;
    margin-bottom: 50px;
}

.gallery-filter-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: var(--bg-light);
    color: var(--secondary-color);
    border: 1px solid #e2e8f0;
    padding: 10px 22px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.category-group {
    margin-bottom: 50px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.category-group.hide {
    display: none !important;
}

.category-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    font-weight: 700;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-light);
    border: 1px solid #e2e8f0;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.item-overlay span {
    color: #bae6fd;
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.item-overlay h3 {
    color: #ffffff;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 450;
}

.zoom-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-caption {
    color: #ffffff;
    text-align: center;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

.seo-gallery-text {
    margin-top: 60px;
    color: var(--text-light);
    line-height: 1.8;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 30px;
}

.seo-gallery-text h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ================================================================
   FOOTER - KURUMSAL SAYFA İLE BİREBİR
   ================================================================ */
footer {
    background-color: #0b1120;
    color: var(--text-light);
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid var(--secondary-color);
    position: relative;
    margin-top: 60px;
}

footer p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-signature-container {
    position: relative;
    display: inline-block;
    margin-top: 5px;
}

.footer-signature {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
    background: none;
    border: none;
    font-family: inherit;
}

.footer-signature:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* ================================================================
   DESIGNER MODAL - KURUMSAL SAYFA İLE BİREBİR
   ================================================================ */
.designer-modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    text-align: left;
}

.designer-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.designer-modal-content {
    padding: 20px;
    position: relative;
}

.designer-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 1.2rem;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.designer-modal-close:hover {
    color: #ffffff;
}

.designer-modal-content h3 {
    font-size: 1.15rem;
    color: #ffffff;
    margin: 0 0 4px 0;
    font-weight: 700;
}

.designer-modal-content .designer-label {
    font-size: 0.75rem;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 15px;
}

.designer-info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.designer-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #0f172a;
    border: 1px solid #1e293b;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}

.designer-info-item:hover {
    border-color: var(--accent-color);
    background: #111827;
}

.designer-info-item label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
    cursor: pointer;
}

.designer-info-item .d-value {
    font-size: 0.85rem;
    color: #e2e8f0;
    font-weight: 500;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    nav {
        display: none !important;
    }
    .hamburger {
        display: flex;
    }
    .corporate-hero-tabela {
        margin-top: 75px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 20px;
    }

    .logo-container img {
        height: 55px;
        padding: 4px 10px;
    }

    /* Hamburger açıkken logo sabit */
    .hamburger.active ~ .logo-container img {
        height: 55px;
    }

    .hero-text {
        left: 20px;
        right: 20px;
        bottom: 80px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .section {
        padding: 60px 20px;
    }

    /* Galeri Hero */
    .corporate-hero-tabela {
        height: 280px;
    }
    .corporate-hero-tabela .hero-text-content {
        padding: 0 20px 40px 20px;
        margin-top: 20px;
    }
    .corporate-hero-tabela .hero-text-content h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    .corporate-hero-tabela .hero-text-content p {
        font-size: 1rem;
        line-height: 1.5;
        padding-right: 10px;
    }

    /* Filtre butonları yatay kaydırma - DÜZELTİLDİ */
    .gallery-filter-container {
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
        overflow: hidden;
    }

    /* ::after wrapper'a taşındı - footer'ı etkilemez */
    .gallery-filter-wrapper {
        position: relative;
        display: flex;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-filter-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 35px;
        background: linear-gradient(to left, rgba(255,255,255,1), transparent);
        pointer-events: none;
        z-index: 2;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .category-group {
        margin-bottom: 35px;
    }
    .category-title {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item {
        aspect-ratio: 1 / 1;
    }

    .item-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.1) 100%);
        padding: 10px;
    }
    .item-overlay span {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }
    .item-overlay h3 {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    .zoom-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        top: 10px;
        right: 10px;
    }

    .lightbox-content {
        max-width: 95%;
    }
    .lightbox-close {
        top: -30px;
        font-size: 2rem;
    }

    /* Mobil Menü */
    .mobile-menu {
        padding: 80px 20px 30px 20px;
    }

    .mobile-menu a {
        font-size: 1.1rem;
        padding: 12px 0;
    }

    .mobile-dropdown-toggle {
        font-size: 1.1rem;
        padding: 12px 0;
    }

    .mobile-sub-menu a {
        font-size: 0.95rem;
        padding: 8px 0;
    }

    /* Footer Mobil */
    .designer-modal {
        bottom: 15px;
        right: 15px;
        width: calc(100vw - 30px);
        max-width: 320px;
    }

    .footer-links {
        gap: 14px;
    }
    .footer-links a {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 8px 15px;
    }

    .logo-container img {
        height: 45px;
        padding: 3px 8px;
    }

    .hamburger.active ~ .logo-container img {
        height: 45px;
    }

    .hero-text h1 {
        font-size: 22px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .cards {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .section {
        padding: 40px 15px;
    }

    .card img {
        height: 120px;
    }

    .card .content {
        padding: 10px;
    }

    .card h3 {
        font-size: 11px;
    }

    .card p {
        font-size: 11px;
    }

    /* Galeri Hero */
    .corporate-hero-tabela {
        margin-top: 65px;
    }
    .corporate-hero-tabela .hero-text-content {
        padding: 0 16px 30px 16px;
    }
    .corporate-hero-tabela .hero-text-content h1 {
        font-size: 1.5rem;
    }
    .corporate-hero-tabela .hero-text-content p {
        font-size: 0.9rem;
    }

    .gallery-grid {
        gap: 6px;
    }
    .item-overlay {
        padding: 6px;
    }
    .item-overlay span {
        font-size: 0.6rem;
    }
    .item-overlay h3 {
        font-size: 0.6rem;
    }

    /* Mobil Menü */
    .mobile-menu {
        padding: 75px 18px 25px 18px;
    }

    .mobile-menu a {
        font-size: 1rem;
        padding: 10px 0;
    }

    .mobile-dropdown-toggle {
        font-size: 1rem;
        padding: 10px 0;
    }

    .mobile-sub-menu a {
        font-size: 0.9rem;
        padding: 6px 0;
    }

    /* Footer Mobil */
    .designer-modal {
        bottom: 10px;
        right: 10px;
        width: calc(100vw - 20px);
        max-width: 300px;
    }
}

/* Masaüstünde dropdown toggle'ı göster */
@media (min-width: 1025px) {
    .desktop-toggle {
        display: inline-block !important;
    }
}

/* ================================================================
   DESIGNER MODAL - EKRAN ORTALAMA VE TEMİZ RENK TASARIMI
   ================================================================ */

/* Ekranın Tam Ortasında Açılmasını Sağlayan Dış Kapsayıcı */
footer .designer-modal,
.designer-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) scale(0.95) !important;
    z-index: 99999 !important;
    
    /* Animasyon ve Görünürlük */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease !important;
    
    /* Arka plan taşmalarını ve koyu kalıntıları sıfırlama */
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Modal Açıldığında Aktif Durumu */
footer .designer-modal.active,
.designer-modal.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

/* Görseldeki İç Kart Tasarımı */
footer .designer-modal-content,
.designer-modal-content {
    background: #ffffff !important;
    width: 320px !important;
    max-width: 90vw !important;
    padding: 25px 20px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important; /* Yumuşak ve temiz gölge */
    position: relative !important;
    text-align: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Dışa sarkan siyahlıkları engeller */
}

/* Görseldeki Ok İğnelerini Gizleme (Ekran ortasında ok gerekmediği için) */
footer .designer-modal-content::before,
footer .designer-modal-content::after,
.designer-modal-content::before,
.designer-modal-content::after {
    display: none !important;
}

/* Kapat Butonu (Sağ Üst 'X') */
.designer-modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 15px !important;
    font-size: 1.2rem !important;
    background: none !important;
    border: none !important;
    color: #64748b !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
}
.designer-modal-close:hover {
    color: #0f172a !important;
}

/* İç Kutu Rengi ve Fontlar */
.designer-info-item {
    background: #f8fafc !important; /* Kutu içi açık gri/mavi tonu */
    border: 1px solid #e2e8f0 !important;
    padding: 10px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
}

.designer-info-item:hover {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

.designer-info-item label {
    font-size: 0.7rem !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

.designer-info-item .d-value {
    font-size: 0.95rem !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

/* ================================================================
   FOOTER DESIGNER MODAL FIX - YAZININ ÜSTÜNDE ORTALI AÇILMA
   ================================================================ */

/* Kapsayıcı hiza pozisyonu */
footer .footer-signature-container {
    position: relative !important;
    display: inline-block !important;
}

/* Modal Ana Kapsayıcı (Butonun 15px Tam Üstünde) */
footer .designer-modal {
    position: absolute !important;
    bottom: calc(100% + 15px) !important;
    left: 50% !important;
    top: auto !important;
    right: auto !important;
    transform: translateX(-50%) translateY(10px) !important;
    z-index: 99999 !important;
    
    /* Yumuşak Açılış Animasyonu */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease !important;
    
    /* Arka plan taşmaları ve dış koyu katmanları sıfırlama */
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Modal Açıldığında (Aktif) Durumu */
footer .designer-modal.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

/* İç Beyaz Kart Tasarımı */
footer .designer-modal-content {
    background: #ffffff !important;
    width: 320px !important;
    max-width: 90vw !important;
    padding: 25px 20px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important; /* Yumuşak ve temiz gölge */
    position: relative !important;
    text-align: center !important;
    box-sizing: border-box !important;
    overflow: visible !important; /* Ok işaretinin görünmesi için */
}

/* Alt İğne / Ok İşareti (Butona Doğru İşaret Eden Kısım) */
footer .designer-modal-content::after {
    content: '' !important;
    position: absolute !important;
    bottom: -8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-width: 8px 8px 0 !important;
    border-style: solid !important;
    border-color: #ffffff transparent !important;
    display: block !important;
    width: 0 !important;
    z-index: 2 !important;
}

footer .designer-modal-content::before {
    content: '' !important;
    position: absolute !important;
    bottom: -9px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-width: 8px 8px 0 !important;
    border-style: solid !important;
    border-color: #e2e8f0 transparent !important;
    display: block !important;
    width: 0 !important;
    z-index: 1 !important;
}

/* Kapat Butonu (Sağ Üst 'X') */
footer .designer-modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 15px !important;
    font-size: 1.2rem !important;
    background: none !important;
    border: none !important;
    color: #64748b !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
}
footer .designer-modal-close:hover {
    color: #0f172a !important;
}

/* Başlıklar ve Etiketler */
footer .designer-modal-content h3 {
    font-size: 1.2rem !important;
    color: #0f172a !important;
    margin: 0 0 2px 0 !important;
    font-weight: 700 !important;
}

footer .designer-modal-content span {
    font-size: 0.75rem !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: block !important;
    margin-bottom: 15px !important;
}

/* E-posta ve İletişim Kutuları */
footer .designer-info-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

footer .designer-info-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
}

footer .designer-info-item:hover {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

footer .designer-info-item label {
    font-size: 0.7rem !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
}

footer .designer-info-item .d-value {
    font-size: 0.95rem !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}