﻿/* =========================================================
   KEPSAŞ - SERTİFİKALARIMIZ
   wwwroot/css/sertifikalarimiz.css
   ========================================================= */

:root {
    --cert-primary: #1a4c6b;
    --cert-blue: #0d6efd;
    --cert-success: #198754;
    --cert-warning: #ffc107;
    --cert-info: #0dcaf0;
    --cert-danger: #dc3545;
    --cert-text: #212529;
    --cert-muted: #6c757d;
    --cert-surface: #ffffff;
    --cert-background: #f8f9fa;
    --cert-border: rgba(20, 32, 51, 0.08);
    --cert-shadow: 0 12px 30px rgba(20, 32, 51, 0.07);
    --cert-shadow-hover: 0 20px 46px rgba(26, 76, 107, 0.10);
}


/* =========================================================
   SAYFA
   ========================================================= */

.cert-page {
    min-height: 70vh;
    overflow-x: hidden;
    padding-bottom: 3rem;
    background: var(--cert-background);
}


/* =========================================================
   HERO
   ========================================================= */

.cert-hero {
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
    text-align: center;
}

.cert-hero-container {
    position: relative;
    z-index: 2;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.cert-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    color: var(--cert-blue);
    background: #ffffff;
    border: 1px solid rgba(13, 110, 253, 0.08);
    border-radius: 999px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

.cert-hero h1 {
    margin: 0 0 1rem;
    color: var(--cert-text);
    font-size: clamp(35px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.4px;
}

.cert-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--cert-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

    .cert-breadcrumb span {
        color: var(--cert-blue);
    }


/* =========================================================
   SERTİFİKA ALANI
   ========================================================= */

.cert-section {
    position: relative;
    z-index: 5;
    margin-top: -20px;
}

.cert-grid {
    align-items: flex-start;
}

.cert-accordion-item {
    background: transparent;
    border: 0;
}

.cert-item {
    width: 100%;
}


/* =========================================================
   KART
   ========================================================= */

.cert-card {
    --cert-accent: var(--cert-primary);
    --cert-accent-soft: rgba(26, 76, 107, 0.10);
    position: relative;
    width: 100%;
    height: auto;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    overflow: hidden;
    color: var(--cert-text);
    background: var(--cert-surface);
    border: 1px solid var(--cert-border);
    border-radius: 8px;
    box-shadow: var(--cert-shadow);
    cursor: pointer;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

    .cert-card:hover {
        transform: translateY(-4px);
        border-color: rgba(26, 76, 107, 0.16);
        box-shadow: var(--cert-shadow-hover);
    }


    /* Bootstrap accordion varsayılan oku */

    .cert-card.accordion-button::after {
        display: none;
    }


    /* Accordion açıkken Bootstrap renk değiştirmesin */

    .cert-card.accordion-button:not(.collapsed) {
        color: var(--cert-text);
        background: var(--cert-surface);
        box-shadow: var(--cert-shadow);
    }


    /* Focus */

    .cert-card.accordion-button:focus {
        border-color: rgba(26, 76, 107, 0.18);
        box-shadow: var(--cert-shadow);
    }

    .cert-card:focus-visible {
        outline: 3px solid rgba(13, 110, 253, 0.20);
        outline-offset: 3px;
    }


/* =========================================================
   KART RENKLERİ
   ========================================================= */

.cert-card-green {
    --cert-accent: var(--cert-success);
    --cert-accent-soft: rgba(40, 167, 69, 0.10);
}

.cert-card-blue {
    --cert-accent: var(--cert-blue);
    --cert-accent-soft: rgba(26, 76, 107, 0.10);
}

.cert-card-orange {
    --cert-accent: var(--cert-warning);
    --cert-accent-soft: rgba(244, 170, 58, 0.15);
}

.cert-card-cyan {
    --cert-accent: var(--cert-info);
    --cert-accent-soft: rgba(23, 162, 184, 0.10);
}

.cert-card-red {
    --cert-accent: var(--cert-danger);
    --cert-accent-soft: rgba(220, 53, 69, 0.10);
}


/* =========================================================
   ISO / IEC FİLİGRANI
   ========================================================= */

.cert-watermark {
    position: absolute;
    right: -10px;
    bottom: -25px;
    z-index: 1;
    color: rgba(230, 233, 238, 0.50);
    font-size: 110px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    pointer-events: none;
    user-select: none;
    transition: color 0.4s ease, transform 0.4s ease;
}

.cert-card:hover .cert-watermark {
    color: rgba(230, 233, 238, 0.90);
    transform: translateY(-2px);
}


/* =========================================================
   KART ÜST ALANI
   ========================================================= */

.cert-card-top {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}


/* =========================================================
   İKON
   ========================================================= */

.cert-icon {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cert-accent);
    background: var(--cert-accent-soft);
    border-radius: 50%;
    font-size: 1.5rem;
    transition: transform 0.4s ease;
}

.cert-card:hover .cert-icon {
    transform: translateY(-2px);
}


/* =========================================================
   STANDARD BADGE
   ========================================================= */

.cert-standard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    color: var(--cert-text);
    background: #f8f9fa;
    border: 1px solid rgba(20, 32, 51, 0.10);
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}


/* =========================================================
   KART İÇERİĞİ
   ========================================================= */

.cert-card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    margin-top: auto;
    text-align: left;
}

.cert-card .cert-title,
.cert-card .cert-card-content h2,
.cert-card .cert-card-content h5 {
    margin: 0 0 0.5rem;
    color: var(--cert-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}


/* Açıklama */

.cert-card-content p {
    margin: 0 0 1rem;
    color: var(--cert-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}


/* =========================================================
   SERTİFİKAYI İNCELE
   ========================================================= */

.cert-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cert-primary);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.5;
}

.cert-chevron {
    transition: transform 0.3s ease;
}

.cert-card:not(.collapsed) .cert-chevron {
    transform: rotate(180deg);
}


/* =========================================================
   ISO 27001 KOYU KART
   ========================================================= */

.cert-card-dark {
    --cert-accent: #ffffff;
    --cert-accent-soft: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    background: linear-gradient( 135deg, #121f31, #173e53 );
    border-color: rgba(255, 255, 255, 0.14);
}

    .cert-card-dark.accordion-button:not(.collapsed) {
        color: #ffffff;
        background: linear-gradient( 135deg, #121f31, #173e53 );
        border-color: rgba(255, 255, 255, 0.14);
    }

    .cert-card-dark .cert-watermark {
        color: rgba(255, 255, 255, 0.10);
    }

    .cert-card-dark:hover .cert-watermark {
        color: rgba(255, 255, 255, 0.16);
    }

    .cert-card-dark .cert-icon {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.10);
        border: 1px solid rgba(255, 255, 255, 0.25);
    }

    .cert-card-dark .cert-standard {
        color: #ffffff;
        background: var(--cert-blue);
        border-color: rgba(255, 255, 255, 0.25);
    }

    .cert-card-dark .cert-title,
    .cert-card-dark .cert-card-content h2,
    .cert-card-dark .cert-card-content h5 {
        color: #ffffff;
    }

    .cert-card-dark .cert-card-content p {
        color: rgba(255, 255, 255, 0.50);
    }

    .cert-card-dark .cert-button {
        color: var(--cert-warning);
    }


/* =========================================================
   ACCORDION COLLAPSE
   ========================================================= */

.cert-collapse {
    margin-top: 1rem;
    border-radius: 12px;
}


/* =========================================================
   PDF ALANI
   ========================================================= */

.cert-pdf-wrapper {
    padding: 0;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid var(--cert-border);
    border-radius: 12px;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.cert-pdf {
    width: 100%;
    height: 600px;
    display: block;
    background: #f8f9fa;
    border: 0;
}


/* Desktopta mobil PDF alanı gizli */

.cert-mobile-pdf {
    display: none;
}


/* =========================================================
   TABLET / KÜÇÜK LAPTOP
   ========================================================= */

@media (max-width: 991.98px) {

    .cert-page {
        padding-bottom: 2.5rem;
    }

    .cert-hero {
        padding: 2.5rem 0;
    }

    .cert-hero-container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .cert-card {
        min-height: 245px;
        padding: 1.35rem;
    }

    .cert-card-top {
        margin-bottom: 1.25rem;
    }

    .cert-icon {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
        font-size: 1.4rem;
    }

    .cert-watermark {
        font-size: 94px;
    }

    .cert-pdf {
        height: 520px;
    }
}


/* =========================================================
   KÜÇÜK TABLET / GENİŞ MOBİL
   576px - 767px

   Bootstrap col-md-6 normalde 768px altında
   tek kolona düşer. Burada iki kart yan yana kalır.
   ========================================================= */

@media (min-width: 576px) and (max-width: 767.98px) {

    .cert-grid {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    .cert-accordion-item {
        flex: 0 0 50%;
        width: 50%;
        max-width: 50%;
    }

    .cert-card {
        min-height: 220px;
        padding: 1.1rem;
    }

    .cert-card-top {
        gap: 0.65rem;
        margin-bottom: 1rem;
    }

    .cert-icon {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        font-size: 1.2rem;
    }

    .cert-standard {
        padding: 0.4rem 0.55rem;
        font-size: 0.65rem;
    }

    .cert-card .cert-title,
    .cert-card .cert-card-content h2,
    .cert-card .cert-card-content h5 {
        margin-bottom: 0.4rem;
        font-size: 17px;
        line-height: 1.22;
    }

    .cert-card-content p {
        margin-bottom: 0.8rem;
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .cert-button {
        gap: 0.4rem;
        font-size: 0.78rem;
    }

    .cert-watermark {
        right: -6px;
        bottom: -16px;
        font-size: 74px;
    }

    .cert-pdf {
        height: 460px;
    }
}


/* =========================================================
   MOBİL
   575px VE ALTI
   ========================================================= */

@media (max-width: 575.98px) {

    .cert-page {
        min-height: auto;
        padding-bottom: 1.75rem;
    }

    .cert-hero {
        padding: 1.5rem 0 1.75rem;
    }

    .cert-hero-container {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .cert-eyebrow {
        margin-bottom: 0.75rem;
        padding: 0.4rem 1rem;
        font-size: 0.68rem;
    }

    .cert-hero h1 {
        margin-bottom: 0.75rem;
        font-size: 1.85rem;
        line-height: 1.12;
        letter-spacing: -0.7px;
    }

    .cert-breadcrumb {
        flex-wrap: wrap;
        gap: 0.35rem;
        font-size: 11px;
        line-height: 1.35;
        letter-spacing: 1px;
    }

    .cert-section {
        margin-top: -8px;
    }

    .cert-grid {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    .cert-card {
        min-height: 0;
        padding: 1.2rem;
    }

    .cert-card-top {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .cert-icon {
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
        font-size: 1.25rem;
    }

    .cert-standard {
        padding: 0.43rem 0.62rem;
        font-size: 0.7rem;
    }

    .cert-card .cert-title,
    .cert-card .cert-card-content h2,
    .cert-card .cert-card-content h5 {
        margin-bottom: 0.4rem;
        font-size: 18px;
        line-height: 1.22;
    }

    .cert-card-content p {
        margin-bottom: 0.85rem;
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .cert-button {
        font-size: 0.82rem;
    }

    .cert-watermark {
        right: -6px;
        bottom: -14px;
        font-size: 72px;
    }


    /* =====================================================
       MOBİL PDF

       Chrome/Android iframe PDF görüntüleyicisini
       göstermiyoruz.
       ===================================================== */

    .cert-collapse {
        margin-top: 0.65rem;
        border-radius: 0;
    }

    .cert-pdf-wrapper {
        overflow: visible;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .cert-pdf {
        display: none;
    }

    .cert-mobile-pdf {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 0.85rem;
        padding: 1rem;
        background: #ffffff;
        border: 1px solid var(--cert-border);
        border-radius: 10px;
        box-shadow: var(--cert-shadow);
    }

    .cert-mobile-pdf-icon {
        grid-row: 1;
        width: 46px;
        height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--cert-danger);
        background: rgba(220, 53, 69, 0.09);
        border-radius: 50%;
        font-size: 1.15rem;
    }

    .cert-mobile-pdf-content {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }

        .cert-mobile-pdf-content strong {
            color: var(--cert-text);
            font-size: 0.85rem;
            font-weight: 700;
            line-height: 1.3;
        }

        .cert-mobile-pdf-content span {
            overflow: hidden;
            color: var(--cert-muted);
            font-size: 0.75rem;
            line-height: 1.35;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

    .cert-mobile-pdf-button {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.1rem;
        padding: 0.65rem 1rem;
        color: #ffffff;
        background: var(--cert-primary);
        border-radius: 7px;
        font-size: 0.82rem;
        font-weight: 700;
        line-height: 1;
        text-decoration: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

        .cert-mobile-pdf-button:hover,
        .cert-mobile-pdf-button:focus-visible {
            color: #ffffff;
            opacity: 0.92;
        }

        .cert-mobile-pdf-button i {
            font-size: 0.7rem;
        }
}


/* =========================================================
   ÇOK DAR TELEFON
   ========================================================= */

@media (max-width: 389.98px) {

    .cert-hero {
        padding: 1.25rem 0 1.5rem;
    }

        .cert-hero h1 {
            font-size: 1.65rem;
        }

    .cert-eyebrow {
        padding: 0.35rem 0.9rem;
        font-size: 0.64rem;
    }

    .cert-breadcrumb {
        font-size: 10px;
        letter-spacing: 0.75px;
    }

    .cert-card {
        padding: 1.05rem;
    }

    .cert-card-top {
        margin-bottom: 0.9rem;
    }

    .cert-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: 1.15rem;
    }

    .cert-standard {
        padding: 0.4rem 0.55rem;
        font-size: 0.66rem;
    }

    .cert-card .cert-title,
    .cert-card .cert-card-content h2,
    .cert-card .cert-card-content h5 {
        font-size: 17px;
    }

    .cert-card-content p {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .cert-button {
        font-size: 0.78rem;
    }

    .cert-watermark {
        right: -5px;
        bottom: -12px;
        font-size: 64px;
    }

    .cert-mobile-pdf {
        gap: 0.7rem;
        padding: 0.85rem;
    }

    .cert-mobile-pdf-icon {
        width: 42px;
        height: 42px;
        font-size: 1.05rem;
    }

    .cert-mobile-pdf-content strong {
        font-size: 0.8rem;
    }

    .cert-mobile-pdf-content span {
        font-size: 0.7rem;
    }

    .cert-mobile-pdf-button {
        min-height: 40px;
        padding: 0.6rem 0.8rem;
        font-size: 0.78rem;
    }
}


/* =========================================================
   DOKUNMATİK CİHAZLAR
   Hover'ın mobilde takılı kalmasını engeller.
   ========================================================= */

@media (hover: none) {

    .cert-card:hover {
        transform: none;
        border-color: var(--cert-border);
        box-shadow: var(--cert-shadow);
    }

        .cert-card:hover .cert-watermark,
        .cert-card:hover .cert-icon {
            transform: none;
        }

        .cert-card:hover .cert-watermark {
            color: rgba(230, 233, 238, 0.50);
        }

    .cert-card-dark:hover .cert-watermark {
        color: rgba(255, 255, 255, 0.10);
    }
}


/* =========================================================
   HAREKET AZALTMA
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .cert-card,
    .cert-watermark,
    .cert-icon,
    .cert-chevron,
    .cert-mobile-pdf-button {
        transition: none;
    }

        .cert-card:hover,
        .cert-card:hover .cert-watermark,
        .cert-card:hover .cert-icon {
            transform: none;
        }
}
