/**
 * Madyo Web - KVKK & Cookie Consent Styles
 */

/* KVKK Hub Navigation & Layout */
.legal-page-wrapper {
    padding: 60px 0 100px;
    background: #f8fafc;
    min-height: 80vh;
}

.legal-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 70px 0 50px;
    position: relative;
    border-bottom: 3px solid #f97316;
}

.legal-header h1 {
    color: #ffffff !important;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.legal-header p {
    color: #cbd5e1 !important;
    font-size: 1.1rem;
    max-width: 800px;
    line-height: 1.6;
}

.legal-header .breadcrumb {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #94a3b8 !important;
}

.legal-header .breadcrumb a {
    color: #ffffff !important;
    font-weight: 600;
}

.legal-header .breadcrumb a:hover {
    color: #f97316 !important;
}

.legal-header .breadcrumb span {
    margin: 0 8px;
    color: #94a3b8 !important;
}

/* Legal Navigation Pills */
.legal-nav-bar {
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    border: 1px solid #e2e8f0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.legal-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    flex: 1 1 0;
    text-align: center;
}

.legal-nav-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.legal-nav-link.active {
    background: #f97316;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}

.legal-nav-link i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Legal Content Card */
.legal-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    line-height: 1.8;
    color: #334155;
}

.legal-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin: 35px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.legal-card h2:first-of-type {
    margin-top: 0;
}

.legal-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 25px 0 10px;
}

.legal-card p {
    margin-bottom: 16px;
    font-size: 1rem;
    color: #475569;
}

.legal-card ul, .legal-card ol {
    margin: 15px 0 25px 25px;
    color: #475569;
}

.legal-card ul {
    list-style: disc;
}

.legal-card ol {
    list-style: decimal;
}

.legal-card li {
    margin-bottom: 10px;
}

.legal-card a {
    color: #ea580c;
    font-weight: 600;
    text-decoration: underline;
}

.legal-card a:hover {
    color: #c2410c;
}

/* Callout Box / Action Alert */
.legal-alert {
    background: #fff7ed;
    border-left: 4px solid #f97316;
    padding: 20px 24px;
    border-radius: 0 10px 10px 0;
    margin: 30px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.legal-alert i {
    color: #f97316;
    font-size: 1.4rem;
    margin-top: 3px;
}

.legal-alert p {
    margin: 0;
    color: #9a3412;
    font-size: 0.98rem;
    line-height: 1.6;
}

.legal-alert a {
    color: #c2410c;
    font-weight: 700;
    text-decoration: underline;
}

/* Tables in Legal Docs */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.95rem;
}

.legal-table th, .legal-table td {
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.legal-table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
}

.legal-table tr:nth-child(even) {
    background: #fafafa;
}

/* Application Form Printable Style */
.form-print-area {
    background: #ffffff;
    border: 2px solid #cbd5e1;
    padding: 40px;
    border-radius: 8px;
    margin: 30px 0;
    color: #1e293b;
}

.form-print-area h3 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    color: #0f172a;
}

.form-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.form-table td, .form-table th {
    border: 1px solid #94a3b8;
    padding: 10px 14px;
    font-size: 0.95rem;
}

.form-table th {
    background: #f1f5f9;
    width: 32%;
    text-align: left;
    font-weight: 600;
}

.form-actions-bar {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.btn-print,
.legal-card a.btn-print,
a.btn-print {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.btn-print:hover,
.legal-card a.btn-print:hover,
a.btn-print:hover {
    background: #334155;
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn-download-action {
    background: #ea580c !important;
    color: #ffffff !important;
}

.btn-download-action:hover {
    background: #c2410c !important;
    color: #ffffff !important;
}

/* ========================================================
   Cookie Consent Banner (Çerez Bandı)
   ======================================================== */
.madyo-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 2px solid #f97316;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    padding: 22px 0;
    color: #ffffff;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

.madyo-cookie-banner.active {
    transform: translateY(0);
}

.madyo-cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.madyo-cookie-text {
    flex: 1 1 500px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.madyo-cookie-text strong {
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.madyo-cookie-text a {
    color: #fb923c;
    text-decoration: underline;
    font-weight: 600;
}

.madyo-cookie-text a:hover {
    color: #fdba74;
}

.madyo-cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.madyo-cookie-btn {
    padding: 11px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
    white-space: nowrap;
}

.btn-cookie-accept {
    background: #f97316;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.35);
}

.btn-cookie-accept:hover {
    background: #ea580c;
    transform: translateY(-1px);
}

.btn-cookie-reject {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cookie-reject:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.btn-cookie-settings {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #475569;
}

.btn-cookie-settings:hover {
    background: #334155;
    color: #ffffff;
    border-color: #64748b;
}

/* ========================================================
   Cookie Settings Modal (Çerez Yönetim Modalı)
   ======================================================== */
.madyo-cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.madyo-cookie-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.madyo-cookie-modal {
    background: #ffffff;
    width: 100%;
    max-width: 650px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: cookieModalZoom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieModalZoom {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.madyo-cookie-modal-header {
    padding: 24px 28px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.madyo-cookie-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.madyo-cookie-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s ease;
}

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

.madyo-cookie-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.madyo-cookie-modal-body p {
    margin-bottom: 20px;
}

.cookie-group {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: #f8fafc;
}

.cookie-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.cookie-group-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-group-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

.cookie-badge-required {
    font-size: 0.75rem;
    background: #e2e8f0;
    color: #475569;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Custom Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: #f97316;
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(20px);
}

.cookie-switch input:disabled + .cookie-slider {
    cursor: not-allowed;
    background-color: #94a3b8;
}

.madyo-cookie-modal-footer {
    padding: 18px 28px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Trigger Button in Footer or Site */
.btn-open-cookie-settings {
    background: transparent;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.btn-open-cookie-settings:hover {
    color: #f97316;
}

/* Print Media */
@media print {
    .site-header, .site-footer, .legal-nav-bar, .form-actions-bar, .mobile-sticky-bar, .madyo-cookie-banner, .madyo-cookie-modal-overlay {
        display: none !important;
    }
    .legal-page-wrapper {
        padding: 0 !important;
        background: #ffffff !important;
    }
    .form-print-area {
        border: none !important;
        padding: 0 !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .legal-card {
        padding: 24px;
    }
    .legal-header h1 {
        font-size: 1.8rem;
    }
    .legal-nav-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }
    .legal-nav-link {
        flex: 0 0 auto;
    }
    .madyo-cookie-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .madyo-cookie-actions {
        flex-direction: column;
    }
    .madyo-cookie-btn {
        width: 100%;
    }
}
