/* =========================================================
   Laravel entegrasyonu için ek stiller (şablon style.css üzerine)
   ========================================================= */

/* Header sepet ikonu */
.rts-header__right { gap: 18px; }
.header-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .08);
    color: var(--color-secondary, #0b0d2c);
    font-size: 18px;
    transition: .3s;
}
.header-cart:hover { background: var(--color-primary, #2d65f2); color: #fff; }
.header-cart__count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--color-primary, #2d65f2);
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    font-weight: 600;
}

/* Bildirimler (toast) */
.site-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
}
.site-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(11, 13, 44, .15);
    border-left: 4px solid #2d65f2;
    font-size: 15px;
    line-height: 1.5;
    color: #0b0d2c;
    animation: siteToastIn .35s ease;
}
.site-toast i { font-size: 18px; margin-top: 2px; }
.site-toast span { flex: 1; }
.site-toast--success { border-color: #16a34a; } .site-toast--success i { color: #16a34a; }
.site-toast--error { border-color: #dc2626; } .site-toast--error i { color: #dc2626; }
.site-toast--warning { border-color: #d97706; } .site-toast--warning i { color: #d97706; }
.site-toast--info { border-color: #2d65f2; } .site-toast--info i { color: #2d65f2; }
.site-toast__close { background: none; border: 0; font-size: 20px; line-height: 1; color: #6b7280; cursor: pointer; padding: 0; }
@keyframes siteToastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* Form doğrulama hataları */
.form-error, .invalid-feedback.d-block { color: #dc2626; font-size: 14px; margin-top: 6px; display: block; }

/* CMS içerikleri (sayfa, blog, bilgi bankası) */
.cms-content { font-size: 16px; line-height: 1.8; color: #4b5563; }
.cms-content h2, .cms-content h3, .cms-content h4 { margin: 28px 0 12px; color: #0b0d2c; }
.cms-content p { margin-bottom: 16px; }
.cms-content ul, .cms-content ol { padding-left: 22px; margin-bottom: 16px; }
.cms-content ul li { list-style: disc; } .cms-content ol li { list-style: decimal; }
.cms-content img { max-width: 100%; height: auto; border-radius: 8px; }
.cms-content a { color: var(--color-primary, #2d65f2); text-decoration: underline; }
.cms-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.cms-content table td, .cms-content table th { border: 1px solid #e5e7eb; padding: 8px 12px; }
.cms-content pre, .cms-content code { background: #f3f4f6; border-radius: 6px; padding: 2px 6px; font-size: 14px; }
.cms-content pre { padding: 12px; overflow: auto; }

@media (max-width: 575px) {
    .site-toast-container { left: 12px; right: 12px; top: 12px; max-width: none; }
}

/* Mega menü: gerçekçi iki tonlu ikonlar */
.mega-menu-item li a .mega-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff1e8 0%, #ffe0cc 100%);
    box-shadow: inset 0 0 0 1px rgba(253, 93, 7, .12);
    font-size: 22px;
    color: var(--color-primary, #FD5D07);
    transition: .3s;
}
.mega-menu-item li:hover a .mega-icon {
    background: var(--color-primary, #FD5D07);
    color: #fff;
}
/* Türkçe metinlerde her kelimeyi büyük harf yapma ("Ve", "Için" hatası) */
.mega-menu-item li a .info span,
.mega-menu-item li a .info p { text-transform: none !important; }
.mega-menu-item li a .info p::first-letter { text-transform: uppercase; }
.mega-menu-item li a .mega-icon { margin-right: 16px; }


/* Footer imzası */
.footer__copy__wrapper { flex-direction: column; gap: 4px; }
.footer-signature { margin: 0; font-size: 14px; opacity: .85; }
.footer-signature a { color: var(--color-primary, #FD5D07); font-weight: 600; }
.footer-signature a:hover { text-decoration: underline; }

/* Fiyat kartı: para simgesi fiyatın yanında, aynı satırda */
.card-plan__price .price-currency { font-size: .75em; font-weight: inherit; vertical-align: baseline; line-height: 1; }
/* Açıklama uzunluğu farklı olsa da kartlardaki fiyatlar aynı hizada kalsın */
.card-plan__desc { min-height: 3.4em; display: flex; align-items: flex-start; justify-content: center; }

/* Şablon hatası düzeltmesi: duotone ikon fontu .html dosyasına bağlıydı */
@font-face {
    font-family: "Font Awesome 6 Duotone";
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("../fonts/fa-duotone-900.woff2") format("woff2"), url("../fonts/fa-duotone-900.ttf") format("truetype");
}

/* Toast: şablonun genel buton stilleri metni daraltmasın */
.site-toast-container { width: min(420px, calc(100vw - 24px)); }
.site-toast { width: 100%; box-sizing: border-box; }
.site-toast > i { flex: 0 0 auto; }
.site-toast > span { flex: 1 1 auto !important; min-width: 0; width: auto !important; display: block; word-break: normal; overflow-wrap: anywhere; text-align: left; }
.site-toast .site-toast__close {
    flex: 0 0 24px !important;
    width: 24px !important;
    min-width: 0 !important;
    max-width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
@media (max-width: 575px) { .site-toast-container { left: 12px; right: 12px; width: auto; } }

/* Netwec logo boyutu: PNG dogal boyutunda basilmasin */
.rts-header__logo .site-logo img { height: 42px; width: auto; max-width: 100%; }
.rts-footer .footer__logo img, .rts-footer__widget .footer__logo img { height: 42px; width: auto; max-width: 100%; }
@media (max-width: 575px) { .rts-header__logo .site-logo img { height: 34px; } }

/* Netwec: acik zeminli sayfalarda (sepet/odeme breadcrumb alani, 404) ust menu yapiskan haliyle ayni gorunsun */
body:has(.rts-breadcrumb-area, .rts-error-section) .rts-header:not(.header-sticky) { background: var(--color-white); box-shadow: var(--box-shadow); }
body:has(.rts-breadcrumb-area, .rts-error-section) .rts-header:not(.header-sticky) .rts-header__wrapper .rts-header__logo .site-logo .logo-white { display: none; }
body:has(.rts-breadcrumb-area, .rts-error-section) .rts-header:not(.header-sticky) .rts-header__wrapper .rts-header__logo .site-logo .logo-dark { display: block; }
body:has(.rts-breadcrumb-area, .rts-error-section) .rts-header:not(.header-sticky) .hostie-menu .hostie-desktop-menu .menu-item .hostie-dropdown-main-element { color: var(--btc); }
body:has(.rts-breadcrumb-area, .rts-error-section) .rts-header:not(.header-sticky) .hostie-menu .hostie-desktop-menu .menu-item .hostie-dropdown-main-element::after { background: var(--btc); }
body:has(.rts-breadcrumb-area, .rts-error-section) .rts-header:not(.header-sticky) .rts-header__right .login__btn { border: 1px solid var(--btc); color: var(--btc); }
body:has(.rts-breadcrumb-area, .rts-error-section) .rts-header:not(.header-sticky) .rts-header__right .login__btn:hover { background: var(--color-third); color: var(--color-secondary) !important; border: 1px solid var(--color-third); }
body:has(.rts-breadcrumb-area, .rts-error-section) .rts-header:not(.header-sticky) .rts-header__right .easy-currency-switcher-toggle { color: var(--btc); border-color: var(--btc); }
body:has(.rts-breadcrumb-area, .rts-error-section) .rts-header:not(.header-sticky) .rts-header__right .dropdown-icon { border-top-color: var(--btc); }
body:has(.rts-breadcrumb-area, .rts-error-section) .rts-header:not(.header-sticky) .rts-header__right .mobile__active { border: 1px solid var(--btc); color: var(--btc); }
body:has(.rts-breadcrumb-area, .rts-error-section) .rts-header:not(.header-sticky) .rts-header__right .cart-icon, body:has(.rts-breadcrumb-area, .rts-error-section) .rts-header:not(.header-sticky) .rts-header__right a { color: var(--btc); }
