/* Color palette inspired by LTC logo - purples and magentas */
:root {
    --color-black: #2d1b4e;
    --color-red: #d946a6;
    --color-gold: #a626d3;
    --color-bg: #f9fafb;
    --color-surface: #ffffff;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --radius-lg: 16px;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, rgba(217,70,166,0.08), transparent 55%), var(--color-bg);
    color: var(--color-black);
    min-height: 100%;
}

a {
    color: var(--color-red);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(249,250,251,0.9);
    border-bottom: 1px solid rgba(17,24,39,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
}

.logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-ltc {
    font-family: 'Poppins', 'Inter', system-ui, sans-serif;
    font-size: 5rem;
    line-height: 0.85;
    margin: 0 0 1rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--color-black), var(--color-red), var(--color-gold));
    -webkit-background-clip: text;
    color: transparent;
}
    font-size: 0.8rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Slogan styles */
.site-slogan,
.admin-slogan,
.footer-slogan {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-top: 6px;
    line-height: 1;
}

.site-slogan {
    font-style: italic;
}

.admin-slogan {
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 0.6rem;
}

.footer-slogan {
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 4px;
}

.nav-main {
    display: flex;
    gap: 0.85rem;
    font-size: 0.95rem;
}

.nav-main a {
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
}

.nav-main a:hover {
    background: rgba(217,70,166,0.06);
    text-decoration: none;
}

.nav-auth {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-hello {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.btn,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn.small,
.btn-secondary.small {
    padding: 0.42rem 0.85rem;
    font-size: 0.85rem;
}

.btn {
    background: linear-gradient(135deg, var(--color-red), #c2185b);
    color: white;
    box-shadow: 0 10px 20px rgba(217,70,166,0.25);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(217,70,166,0.3);
    text-decoration: none;
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-black);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: #f3f4f6;
    text-decoration: none;
}

/* Layout */
.site-main {
    padding: 1.5rem 0 3rem;
}

.hero-section {
    min-height: 70vh; /* about ~2.5–3 scrolls when combined with other sections */
    display: flex;
    align-items: center;
    padding: 2.5rem 0 2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 2.5rem;
    align-items: center;
}

/* Centered hero adjustments when content is single-column */

.hero-section {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

/* Large translucent logo in hero background */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    display: block;
    background-image: url('/assets/ltc_logo.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 60%;
    opacity: 0.06;
    filter: grayscale(20%) saturate(0.6);
    transform: translateY(-4%);
    pointer-events: none;
}

@media (max-width: 900px) {
    .hero-section::before {
        background-size: 90%;
        opacity: 0.05;
        transform: translateY(-2%);
    }
}

.hero-section .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.hero-title-block {
    max-width: 780px;
    text-align: center;
    margin: 0 auto;
}

/* Ensure all hero content is centered */
.hero-section > .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-badges {
    display: flex;
    gap: 0.7rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0.8rem 0;
}

.hero-colors {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1rem;
}

.hero-slogan {
    font-size: 1.05rem;
    color: var(--color-muted);
    margin-top: 0.45rem;
    margin-bottom: 0.6rem;
    font-style: italic;
}

.hero-title-block {
    max-width: 540px;
}

.hero-ltc {
    font-size: 7rem;
    line-height: 0.85;
    margin: 0 0 1rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--color-black), var(--color-red), var(--color-gold));
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-muted);
    margin-bottom: 1.4rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.6rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(15,23,42,0.03);
    border: 1px solid rgba(15,23,42,0.06);
}

.badge.red {
    background: rgba(217,70,166,0.08);
    border-color: rgba(217,70,166,0.3);
    color: #6b21a8;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
}

.hero-visual {
    background: radial-gradient(circle at top, rgba(166,38,211,0.35), transparent 60%), 
                radial-gradient(circle at bottom left, rgba(217,70,166,0.4), transparent 60%);
    border-radius: 32px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero-card {
    background: rgba(255,255,255,0.92);
    border-radius: 24px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(229,231,235,0.8);
}

.hero-card h3 {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
}

.hero-card p {
    margin: 0 0 0.6rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #2d1b4e;
    color: #a626d3;
    font-size: 0.75rem;
}

.hero-colors {
    display: flex;
    margin-top: 1.2rem;
    gap: 0.4rem;
}

.hero-colors span {
    width: 22px;
    height: 22px;
    border-radius: 999px;
}

.hero-dot-black { background: #2d1b4e; }
.hero-dot-red { background: #d946a6; }
.hero-dot-gold { background: #a626d3; }

/* Landing sections */
.section {
    padding: 2.5rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 1.2rem 1.3rem;
    box-shadow: var(--shadow-soft);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.6rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--color-muted);
}

.card-body {
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* Teachers & offers cards */
.card-teacher {
    text-align: left;
}

.card-teacher img {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    margin-bottom: 0.6rem;
}

.card-offer-price {
    font-weight: 700;
    color: var(--color-red);
    margin-bottom: 0.3rem;
}

/* Contact form */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
    font: inherit;
    resize: vertical;
}

textarea {
    min-height: 120px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-red);
    box-shadow: 0 0 0 1px rgba(217,70,166,0.2);
}

/* Tables (admin) */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th,
.table td {
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 0.4rem;
    text-align: left;
}

.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
}

/* Admin layout */
.admin-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100%;
    gap: 0;
}

.admin-sidebar {
    background: #2d1b4e;
    color: #f9fafb;
    padding: 1.4rem 1rem;
    min-height: 100vh;
}

.admin-sidebar h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #a626d3;
}

.admin-nav a {
    display: block;
    padding: 0.5rem 0.6rem;
    border-radius: 0.6rem;
    color: #e5e7eb;
    font-size: 0.9rem;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(248,250,252,0.1);
    text-decoration: none;
}

.admin-nav a {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-main {
    padding: 1.5rem 1.6rem;
    min-height: 100%;
}

.admin-main-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.alert {
    padding: 0.6rem 0.8rem;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    margin-bottom: 0.9rem;
}

.alert-success {
    background: rgba(22,163,74,0.08);
    color: #166534;
}

.alert-error {
    background: rgba(220,38,38,0.08);
    color: #b91c1c;
}

/* Notification bubble */
#notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
    border-radius: 999px;
    background: var(--color-red);
    color: white;
    margin-left: 0.2rem;
    padding: 0 0.25rem;
}

.toast {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    background: #2d1b4e;
    color: #f9fafb;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
    font-size: 0.85rem;
    max-width: 320px;
    z-index: 100;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(45,27,78,0.08);
    padding: 1.2rem 0;
    background: rgba(45,27,78,0.96);
    color: #e5e7eb;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
}

.footer-links a {
    color: #e5e7eb;
    margin-left: 0.8rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-section {
        min-height: auto;
        padding-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 0.7rem;
    }
    .nav-main {
        flex-wrap: wrap;
        justify-content: center;
    }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        border-bottom: 1px solid rgba(136,70,147,0.6);
    }
}
