/* ==========================================================================
   Rehber Enerji & Teknoloji — site geneli tema
   --------------------------------------------------------------------------
   Panelin renk paleti logo kaynaklıdır (indigo #052655 + kırmızı #00953F).
   Panel kabuğu (üst bar, kenar çubuğu, içerik) `shell.css` dosyasındadır ve
   hem MVC (_Layout.cshtml) hem Blazor (MainLayout.razor) tarafından kullanılır.
   Bu dosya kabuk dışı kalan yüzeyleri (giriş ekranı, genel sayfa, bağlantılar)
   ve marka yardımcı sınıflarını tanımlar.
   ========================================================================== */

/* --- Marka yardımcıları (kabuk dışı bağlamlarda da kullanılır) ----------- */

.rx-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}

/* Site logosu (wwwroot/img/logo.png - değiştirilebilir, bk. README "Logo"). */
.rx-logo {
    height: 38px;
    width: auto;
    border-radius: 8px;
    background: #fff;
    padding: 2px 5px;
}

.rx-brand-fallback {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}

.rx-brand-fallback[hidden] {
    display: none;
}

/* Logo yüklenemezse gösterilen monogram: marka kırmızısı zemin */
.rx-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--rx-brand-red, #00953f);
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: .02em;
}

.rx-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    font-weight: 700;
    color: var(--rx-heading, #101830);
}

.rx-brand-text small {
    font-size: .72rem;
    font-weight: 500;
    color: var(--rx-muted, #5d6a83);
    letter-spacing: .04em;
}

/* Kabuk dışında (açık zeminde) marka metni koyu temada açık renge döner. */
:root[data-theme="dark"] .rx-brand-text {
    color: var(--rx-heading, #f5f7fb);
}

:root[data-theme="dark"] .rx-brand-text small {
    color: var(--rx-muted, #97a3ba);
}

/* --- Giriş ekranı ------------------------------------------------------- */

/* Açık sayfa kabuğu: yapışkan footer (kısa sayfada altta, uzun sayfada içerikten sonra).
   Gövde esnek kolon olur; footer asla içeriğin üstüne binmez. */
body.rx-public {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.rx-public .rx-page {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

body.rx-public .rx-page > main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

body.rx-public .footer {
    margin-top: auto;
}

.rx-login-wrap {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(1100px 500px at 12% -10%, rgba(5, 38, 85, .20), transparent 60%),
        radial-gradient(900px 500px at 100% 110%, rgba(0, 149, 63, .16), transparent 60%),
        var(--rx-bg, #f4f5f9);
}

.rx-login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--rx-shadow-lg, 0 10px 30px rgba(23, 32, 58, .12));
}

.rx-login-card .card-header {
    background: linear-gradient(135deg, #041b3d, #052655);
    color: #fff;
    border: 0;
    padding: 1.6rem 1.4rem 1.4rem;
    text-align: center;
    border-radius: 18px 18px 0 0 !important;
}

.rx-login-card .card-header .rx-brand-text {
    color: #fff;
    font-size: 1.1rem;
}

.rx-login-card .card-header .rx-brand-text small {
    color: rgba(255, 255, 255, .72);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .66rem;
}

.rx-login-intro {
    margin: 0 0 1.1rem;
    color: var(--rx-muted);
    font-size: .9rem;
}

.rx-login-card .card-body {
    padding: 1.4rem;
}

.rx-login-logo {
    height: 54px;
    width: auto;
    background: #fff;
    border-radius: 10px;
    padding: 4px 8px;
    margin-bottom: .6rem;
}

.rx-login-card .form-control:focus {
    border-color: var(--rx-brand-indigo, #052655);
    box-shadow: 0 0 0 .22rem var(--rx-focus-ring, rgba(5, 38, 85, .22));
}

.rx-login-card .btn-primary {
    background: linear-gradient(90deg, #052655, #0a3468);
    border: 0;
}

.rx-login-card .btn-primary:hover,
.rx-login-card .btn-primary:focus {
    background: linear-gradient(90deg, #041b3d, #052655);
}

/* --- Genel site başlığı (panel dışı) ------------------------------------- */

.rx-site-header {
    background: var(--rx-topbar-bg);
    box-shadow: var(--rx-shadow);
}

.rx-site-header .rx-brand-text {
    color: #fff;
}

.rx-site-header .rx-brand-text small {
    color: rgba(255, 255, 255, .72);
}

.rx-site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: .7rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.rx-site-header .nav-link {
    color: rgba(255, 255, 255, .88);
    font-weight: 550;
    padding: .45rem .7rem;
    border-radius: 8px;
    text-decoration: none;
}

.rx-site-header .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.rx-site-header .btn-link.nav-link {
    border: 0;
    text-decoration: none;
    cursor: pointer;
}

.rx-site-header .rx-login-link {
    background: var(--rx-brand-red);
    color: #fff !important;
    font-weight: 650;
}

.rx-site-header .rx-login-link:hover {
    background: var(--rx-brand-red-2);
    color: #fff !important;
}

.rx-site-header .rx-theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .10);
    color: #fff;
    cursor: pointer;
}

.rx-site-header .rx-theme-btn:hover {
    background: rgba(255, 255, 255, .20);
}

/* --- Kurumsal giriş (landing) sayfası ----------------------------------- */

.rx-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(900px 420px at 88% -20%, rgba(0, 149, 63, .28), transparent 62%),
        radial-gradient(700px 420px at 8% 0%, rgba(255, 255, 255, .16), transparent 60%),
        linear-gradient(135deg, #041b3d 0%, #052655 55%, #0a3468 100%);
    color: #fff;
    box-shadow: var(--rx-shadow-lg);
}

.rx-hero-inner {
    padding: 3.2rem 2.4rem;
    max-width: 900px;
}

.rx-hero-badge {
    display: inline-block;
    padding: .3rem .75rem;
    margin-bottom: 1.1rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.rx-hero-title {
    font-size: clamp(1.9rem, 4.2vw, 2.9rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #fff;
    margin: 0 0 1rem;
}

.rx-hero-accent {
    color: #7fd6a2;
}

.rx-hero-lead {
    font-size: 1.03rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .86);
    max-width: 640px;
    margin: 0 0 1.7rem;
}

.rx-hero-actions {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
    margin-bottom: 2.2rem;
}

.rx-hero .btn-lg {
    padding: .65rem 1.3rem;
    font-size: 1rem;
    border-radius: 10px;
}

.btn-accent {
    background: var(--rx-brand-red);
    border: 1px solid var(--rx-brand-red);
    color: #fff;
    font-weight: 650;
}

.btn-accent:hover,
.btn-accent:focus {
    background: var(--rx-brand-red-2);
    border-color: var(--rx-brand-red-2);
    color: #fff;
}

.btn-ghost-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .45);
    color: #fff;
    font-weight: 600;
}

.btn-ghost-light:hover,
.btn-ghost-light:focus {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
}

.rx-hero-stats {
    display: flex;
    gap: 2.4rem;
    margin: 0;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.rx-hero-stats dt {
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .68);
}

.rx-hero-stats dd {
    margin: .15rem 0 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

/* Bölümler ve kart ızgarası */
.rx-section {
    padding: 3rem 0 .5rem;
}

.rx-section-alt {
    padding-top: 2.4rem;
}

.rx-section-head {
    margin-bottom: 1.6rem;
}

.rx-section-head h2 {
    font-size: 1.6rem;
    margin: 0 0 .3rem;
}

.rx-section-head p {
    margin: 0;
    color: var(--rx-muted);
}

.rx-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.rx-feature {
    padding: 1.25rem 1.3rem;
    border: 1px solid var(--rx-border);
    border-radius: 14px;
    background: var(--rx-card);
    box-shadow: var(--rx-shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.rx-feature:hover {
    transform: translateY(-2px);
    border-color: var(--rx-brand-indigo);
    box-shadow: var(--rx-shadow);
}

.rx-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: .7rem;
    border-radius: 11px;
    background: var(--rx-brand-red-soft);
    font-size: 1.25rem;
}

.rx-feature h3 {
    font-size: 1.05rem;
    margin: 0 0 .35rem;
}

.rx-feature p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.6;
    color: var(--rx-muted);
}

.rx-feature.is-plain {
    border-left: 3px solid var(--rx-brand-indigo);
}

@media (max-width: 575.98px) {
    .rx-hero-inner {
        padding: 2.2rem 1.3rem;
    }

    .rx-hero-stats {
        gap: 1.4rem;
    }
}

/* --- Genel sayfa / içerik ------------------------------------------------ */

.rx-page {
    max-width: 1140px;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.footer {
    padding: 1.2rem 0;
    border-top: 1px solid var(--rx-border, #e2e6ef);
    color: var(--rx-footer-text, #5d6a83);
    font-size: .85rem;
    text-align: center;
    background: var(--rx-surface, #fff);
}

a {
    text-underline-offset: 2px;
}

b, strong {
    color: var(--rx-heading, #101830);
}

hr {
    border-color: var(--rx-border, #e2e6ef);
    opacity: 1;
}

code, pre {
    background: var(--rx-bg-2, #eceef5);
    color: var(--rx-text, #17203a);
}

/* Bootstrap'in koyu temada varsayılan olarak kalan açık zeminleri düzelt. */
:root[data-theme="dark"] .bg-light,
:root[data-theme="dark"] .bg-white {
    background-color: var(--rx-surface, #161c2c) !important;
    color: var(--rx-text, #e6eaf3) !important;
}

:root[data-theme="dark"] .text-dark {
    color: var(--rx-text, #e6eaf3) !important;
}

:root[data-theme="dark"] .border,
:root[data-theme="dark"] .border-top,
:root[data-theme="dark"] .border-bottom {
    border-color: var(--rx-border, #263048) !important;
}

:root[data-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, .02);
    --bs-table-striped-color: var(--rx-text);
}

/* --- Kurumsal site: hizmetler / surec / iletisim / alt bilgi ---------------- */

.rx-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.2rem;
    margin: 0 0 1.6rem;
    padding: 0;
    list-style: none;
    font-size: .9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
}

.rx-trust-strip li::before {
    content: "✓ ";
    color: #7fd6a2;
    font-weight: 800;
}

.rx-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: rx-step;
}

.rx-steps li {
    position: relative;
    padding: 1.1rem 1.1rem 1.1rem 3.2rem;
    border: 1px solid var(--rx-border);
    border-radius: 14px;
    background: var(--rx-card);
    box-shadow: var(--rx-shadow-sm);
    counter-increment: rx-step;
}

.rx-steps li::before {
    content: counter(rx-step);
    position: absolute;
    left: .9rem;
    top: 1rem;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--rx-brand-green, #00953f);
    color: #fff;
    font-weight: 800;
    font-size: .9rem;
}

.rx-steps strong { display: block; margin-bottom: .2rem; }
.rx-steps p { margin: 0; font-size: .88rem; color: var(--rx-muted); }

.rx-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.rx-contact-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.rx-contact-list li { margin-bottom: .55rem; font-size: .93rem; }
.rx-contact-list strong { display: inline-block; min-width: 110px; }

.rx-map-frame {
    border: 1px solid var(--rx-border);
    border-radius: 14px;
    overflow: hidden;
    min-height: 260px;
    background: var(--rx-bg-2);
}

.rx-map-frame iframe { width: 100%; height: 100%; min-height: 260px; border: 0; }

.rx-contact-form {
    border: 1px solid var(--rx-border);
    border-radius: 14px;
    background: var(--rx-card);
    box-shadow: var(--rx-shadow-sm);
    padding: 1.3rem;
}

.rx-honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.rx-site-footer {
    margin-top: 3rem;
    background: linear-gradient(180deg, #041b3d 0%, #052655 100%);
    color: #c3d0e2;
    border-top: 3px solid var(--rx-brand-green, #00953f);
}

.rx-site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.2rem 1rem 1.2rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 1.6rem;
}

.rx-site-footer h3 {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 .7rem;
}

.rx-site-footer ul { list-style: none; margin: 0; padding: 0; }
.rx-site-footer li { margin-bottom: .4rem; font-size: .9rem; }
.rx-site-footer a { color: #c3d0e2; text-decoration: none; }
.rx-site-footer a:hover { color: #fff; text-decoration: underline; }

.rx-social { display: flex; gap: .5rem; margin-top: .8rem; }
.rx-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    text-decoration: none;
}
.rx-social a:hover { background: var(--rx-brand-green, #00953f); }
.rx-social svg { width: 17px; height: 17px; fill: currentColor; }

.rx-site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding: .9rem 1rem;
    text-align: center;
    font-size: .82rem;
    color: rgba(255, 255, 255, .65);
}

@media (max-width: 767.98px) {
    .rx-contact-grid { grid-template-columns: 1fr; }
    .rx-site-footer-inner { grid-template-columns: 1fr; }
}
