/**
 * Page Snippet Stylesheets
 *
 * Yer: resources/views/layouts/app.blade.php - style.min.css'den SONRA yuklenir.
 * Admin editor'une enjekte edilen snippet'lerin frontend'de ayni gozukmesi icin CSS.
 *
 * Class isimlendirme: snippet-{snippet-key}
 * Snippet'ler config/page-snippets.php'de tanimli — class degisiminde her iki yer guncellenmeli.
 */

/* ============================================================ */
/* Summernote color/size override — hero-subtitle ve benzeri     */
/* yerlerde parent 'color: #ccc' gibi kurallar inline stili      */
/* bozmasin diye span'lerin inline rengi korunur.                */
/* ============================================================ */
.hero-subtitle span[style],
.page-subtitle span[style] {
    /* inline color/font-size gecmesi icin bir sey yapmaya gerek yok —
       burada CSS kurali sadece BELIRTME amaciyla dokumane edildi.
       Span'in inline style'i zaten daha yuksek specificity'e sahip. */
}

/* Hero subtitle varsayilan beyaz — kullanici Summernote'tan siyah secerse
   parent'in style'inda da beyaz olsa span'in inline style'i 'color: black'
   ezer ama base durumda metin gorunur. */
.frontpage-hero {
    color: #fff;
}
.hero-subtitle,
.hero-subtitle p,
.hero-subtitle h1,
.hero-subtitle h2,
.hero-subtitle h3,
.hero-subtitle h4,
.page-subtitle,
.page-subtitle p,
.narrow-content p {
    /* Inline span/heading rengi uygulanabilsin diye parent rengini miras alinir.
       .frontpage-hero beyaz olunca hero subtitle default beyaz olur. */
    color: inherit;
}

/* .frontpage-hero::before overlay z-index:1 — icerik bunun UZERINDE olmali.
   Aksi takdirde overlay metni soluklastiriyor ('IMPULSE TECHNOLOGY' faded). */
.frontpage-hero > *,
.frontpage-hero h1,
.frontpage-hero h2,
.frontpage-hero p,
.frontpage-hero .hero-subtitle,
.frontpage-hero .links {
    position: relative;
    z-index: 2;
}

/* Genel snippet container reset */
.snippet {
    margin: 1.5em 0;
}

/* ============================================================ */
/* 2 Columns: Image + Text                                      */
/* ============================================================ */
.snippet-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    align-items: center;
}
.snippet-two-col .snippet-col img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}
.snippet-two-col .snippet-col-text h3 {
    margin-top: 0;
    color: #00486D;
}
@media (max-width: 767px) {
    .snippet-two-col {
        grid-template-columns: 1fr;
        gap: 1em;
    }
}

/* ============================================================ */
/* Card Grid (3 / 4 items)                                      */
/* ============================================================ */
.snippet-card-grid {
    display: grid;
    gap: 1.5em;
}
.snippet-card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.snippet-card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
.snippet-card {
    background: #f8f9fa;
    padding: 1.5em;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.snippet-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 72, 109, 0.1);
}
.snippet-card-icon {
    font-size: 2.5rem;
    color: #F0181F;
    margin-bottom: 0.6em;
    display: block;
}
.snippet-card h4 {
    color: #00486D;
    margin: 0.3em 0 0.5em;
    font-size: 1.1rem;
}
.snippet-card p {
    color: #555;
    font-size: 0.95em;
    margin: 0;
}
@media (max-width: 991px) {
    .snippet-card-grid-3,
    .snippet-card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575px) {
    .snippet-card-grid-3,
    .snippet-card-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================================ */
/* CTA Banner                                                   */
/* ============================================================ */
.snippet-cta {
    background: linear-gradient(135deg, #00486D 0%, #0066a0 100%);
    color: #fff;
    padding: 2.5em 2em;
    border-radius: 10px;
    text-align: center;
    margin: 2em 0;
}
.snippet-cta h3 {
    color: #fff;
    margin: 0 0 0.5em;
    font-size: 1.7rem;
}
.snippet-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05em;
    margin: 0 0 1.5em;
}
.snippet-cta-button {
    display: inline-block;
    background: #F0181F;
    color: #fff;
    padding: 0.7em 2em;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s ease;
}
.snippet-cta-button:hover {
    background: #d0151a;
    color: #fff;
    text-decoration: none;
}

/* ============================================================ */
/* Features List                                                */
/* ============================================================ */
.snippet-features {
    list-style: none;
    padding: 0;
    margin: 1.5em 0;
}
.snippet-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.7em;
    padding: 0.7em 0;
    border-bottom: 1px solid #eee;
}
.snippet-features li:last-child {
    border-bottom: none;
}
.snippet-feature-icon {
    color: #28a745;
    font-size: 1.1em;
    margin-top: 0.25em;
    flex-shrink: 0;
}

/* ============================================================ */
/* Quote Block                                                  */
/* ============================================================ */
.snippet-quote {
    border-left: 4px solid #F0181F;
    padding: 1em 1.5em;
    margin: 2em 0;
    background: #f8f9fa;
    font-style: italic;
    font-size: 1.1em;
    color: #333;
}
.snippet-quote p {
    margin: 0 0 0.5em;
    font-style: italic;
}
.snippet-quote-author {
    font-style: normal;
    font-size: 0.9em;
    color: #666;
    font-weight: 600;
}

/* ============================================================ */
/* Full-Width Image                                             */
/* ============================================================ */
.snippet-image-full {
    margin: 2em 0;
    text-align: center;
}
.snippet-image-full img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}
.snippet-image-full figcaption {
    font-size: 0.9em;
    color: #666;
    text-align: center;
    margin-top: 0.6em;
    font-style: italic;
}

/* ============================================================ */
/* Video Embed (YouTube responsive)                             */
/* ============================================================ */
.snippet-video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    margin: 2em 0;
    border-radius: 6px;
}
.snippet-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================================ */
/* Section Divider                                              */
/* ============================================================ */
.snippet-section-divider {
    margin: 3em 0 2em;
    padding-top: 2em;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}
.snippet-section-divider h2 {
    color: #00486D;
    margin: 0 0 0.5em;
}
.snippet-section-lead {
    color: #666;
    font-size: 1.05em;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================================ */
/* Reverse 2-col + 3 columns                                    */
/* ============================================================ */
.snippet-two-col.snippet-two-col-reverse .snippet-col-image { order: 2; }
.snippet-two-col.snippet-two-col-reverse .snippet-col-text { order: 1; }
@media (max-width: 767px) {
    .snippet-two-col.snippet-two-col-reverse .snippet-col-image { order: initial; }
    .snippet-two-col.snippet-two-col-reverse .snippet-col-text { order: initial; }
}

.snippet-three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
    margin: 1.5em 0;
}
@media (max-width: 767px) {
    .snippet-three-col { grid-template-columns: 1fr; }
}
.snippet-three-col h4 { color: #00486D; margin-top: 0; }

.snippet-hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2.5em 0;
}

/* ============================================================ */
/* Card Grid 2 (2 sutun)                                        */
/* ============================================================ */
.snippet-card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 575px) {
    .snippet-card-grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================ */
/* Stats Row                                                    */
/* ============================================================ */
.snippet-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
    text-align: center;
    margin: 2em 0;
    padding: 2em 1em;
    background: linear-gradient(135deg, #00486D 0%, #0066a0 100%);
    border-radius: 10px;
    color: #fff;
}
@media (max-width: 767px) {
    .snippet-stats { grid-template-columns: 1fr; }
}
.snippet-stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.3em;
}
.snippet-stat-label {
    font-size: 0.95rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================ */
/* Team Member                                                  */
/* ============================================================ */
.snippet-team {
    text-align: center;
    padding: 1.5em;
    background: #f8f9fa;
    border-radius: 10px;
    max-width: 300px;
    margin: 1em auto;
}
.snippet-team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1em;
    display: block;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.snippet-team-name {
    color: #00486D;
    margin: 0.3em 0 0.1em;
}
.snippet-team-role {
    color: #F0181F;
    font-weight: 600;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.7em;
}
.snippet-team-bio {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
}

/* ============================================================ */
/* CTA Centered (Large)                                         */
/* ============================================================ */
.snippet-cta-centered {
    text-align: center;
    padding: 3em 2em;
    background: linear-gradient(135deg, #00486D 0%, #F0181F 100%);
    color: #fff;
    border-radius: 12px;
    margin: 2em 0;
}
.snippet-cta-centered h2 {
    color: #fff;
    font-size: 2em;
    margin: 0 0 0.5em;
}
.snippet-cta-centered p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 1.5em;
    font-size: 1.05em;
    line-height: 1.6;
}
.snippet-cta-buttons {
    display: flex;
    gap: 0.75em;
    justify-content: center;
    flex-wrap: wrap;
}
.snippet-cta-button-outline {
    background: transparent !important;
    border: 2px solid #fff;
}

/* ============================================================ */
/* Button Group                                                 */
/* ============================================================ */
.snippet-button-group {
    display: flex;
    gap: 0.75em;
    flex-wrap: wrap;
    margin: 1.5em 0;
}
.snippet-btn {
    display: inline-block;
    padding: 0.7em 1.8em;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
}
.snippet-btn-primary {
    background: #F0181F;
    color: #fff;
}
.snippet-btn-primary:hover {
    background: #d0151a;
    color: #fff;
    text-decoration: none;
}
.snippet-btn-secondary {
    background: transparent;
    color: #00486D;
    border: 2px solid #00486D;
}
.snippet-btn-secondary:hover {
    background: #00486D;
    color: #fff;
    text-decoration: none;
}

/* ============================================================ */
/* Testimonial                                                  */
/* ============================================================ */
.snippet-testimonial {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.8em;
    margin: 1.5em 0;
}
.snippet-testimonial-stars {
    color: #f59e0b;
    font-size: 1.1em;
    margin-bottom: 0.8em;
    letter-spacing: 0.1em;
}
.snippet-testimonial-text {
    font-style: italic;
    font-size: 1.05em;
    color: #333;
    margin-bottom: 1.2em;
    line-height: 1.6;
}
.snippet-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8em;
}
.snippet-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.snippet-testimonial-name {
    font-weight: 700;
    color: #00486D;
    font-size: 0.95em;
}
.snippet-testimonial-role {
    color: #666;
    font-size: 0.8em;
}

/* ============================================================ */
/* Alerts (Info / Warning / Success)                            */
/* ============================================================ */
.snippet-alert {
    display: flex;
    gap: 0.8em;
    padding: 1em 1.2em;
    border-radius: 8px;
    margin: 1.2em 0;
    align-items: flex-start;
    line-height: 1.5;
}
.snippet-alert-icon {
    font-size: 1.2em;
    flex-shrink: 0;
    margin-top: 0.1em;
}
.snippet-alert-info {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}
.snippet-alert-warning {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}
.snippet-alert-success {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #166534;
}

/* ============================================================ */
/* Callout                                                      */
/* ============================================================ */
.snippet-callout {
    display: flex;
    gap: 1em;
    padding: 1.5em;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 10px;
    border-left: 4px solid #F0181F;
    margin: 1.5em 0;
}
.snippet-callout-icon {
    font-size: 2em;
    color: #F0181F;
    flex-shrink: 0;
}
.snippet-callout-content h4 {
    color: #00486D;
    margin: 0 0 0.3em;
}
.snippet-callout-content p {
    color: #333;
    margin: 0;
}

/* ============================================================ */
/* Image Gallery                                                */
/* ============================================================ */
.snippet-image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75em;
    margin: 1.5em 0;
}
@media (max-width: 575px) {
    .snippet-image-gallery { grid-template-columns: 1fr; }
}
.snippet-image-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

/* ============================================================ */
/* Image with Overlay                                           */
/* ============================================================ */
.snippet-image-overlay {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin: 2em 0;
    min-height: 300px;
}
.snippet-image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 300px;
}
.snippet-image-overlay-text {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 72, 109, 0.8));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5em;
}
.snippet-image-overlay-text h3 {
    color: #fff;
    margin: 0 0 0.3em;
}
.snippet-image-overlay-text p { margin: 0; }

/* ============================================================ */
/* Icon Features (3-column)                                     */
/* ============================================================ */
.snippet-icon-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    margin: 2em 0;
    text-align: center;
}
@media (max-width: 767px) {
    .snippet-icon-features { grid-template-columns: 1fr; }
}
.snippet-icon-feature-icon {
    font-size: 3rem;
    color: #F0181F;
    margin-bottom: 0.6em;
    display: block;
}
.snippet-icon-feature h4 {
    color: #00486D;
    margin: 0.4em 0 0.3em;
}
.snippet-icon-feature p {
    color: #666;
    font-size: 0.95em;
    margin: 0;
}

/* ============================================================ */
/* FAQ Item                                                     */
/* ============================================================ */
.snippet-faq {
    border-bottom: 1px solid #e5e7eb;
    padding: 1em 0;
}
.snippet-faq-q {
    color: #00486D;
    margin: 0 0 0.5em;
    font-size: 1.05em;
}
.snippet-faq-a {
    color: #555;
    padding-left: 1em;
}

/* ============================================================ */
/* Timeline Item                                                */
/* ============================================================ */
.snippet-timeline-item {
    display: flex;
    gap: 1.2em;
    padding-left: 1.5em;
    border-left: 3px solid #F0181F;
    margin: 1em 0;
    position: relative;
}
.snippet-timeline-item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 0.4em;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #F0181F;
}
.snippet-timeline-year {
    font-weight: 800;
    color: #F0181F;
    font-size: 1.3em;
    flex-shrink: 0;
    width: 80px;
}
.snippet-timeline-content h4 {
    color: #00486D;
    margin: 0 0 0.3em;
}
.snippet-timeline-content p {
    color: #666;
    margin: 0;
}
