/**
 * Midnight Emerald Theme - Custom Styles
 *
 * Dark UI with emerald highlights.
 * Core system styles are in /assets/css/public-theme.css
 */

/* GLOBAL BACKGROUND & TEXT ------------------------------------------------ */

body {
    background:
        radial-gradient(circle at top, rgba(34, 197, 94, 0.18), transparent 55%),
        radial-gradient(circle at bottom, rgba(56, 189, 248, 0.18), transparent 60%),
        var(--theme-color-bg-page, #020617);
    color: var(--theme-color-text_primary, #e5e7eb);
}

.theme-main {
    background: transparent;
    color: var(--theme-color-text_primary, #e5e7eb);
}

.theme-container {
    max-width: var(--theme-container-max-width, 1200px);
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.theme-section,
.theme-section-sm {
    background: transparent;
    color: var(--theme-color-text_primary, #e5e7eb);
}

.theme-section-alt {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
    color: var(--theme-color-text_primary, #e5e7eb);
}

.theme-section-dark {
    background: var(--theme-gradient-dark);
    color: #f9fafb;
}

.theme-section-dark .theme-stat-label {
    color: rgba(209, 213, 219, 0.85);
}

/* Article / content blocks */

.theme-article-content {
    padding: 1.75rem 1.75rem 2rem;
}

/* NAVBAR ------------------------------------------------------------------ */

.theme-navbar {
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
}

.theme-navbar-brand span {
    color: #e5e7eb;
}

.theme-nav-link {
    color: rgba(226, 232, 240, 0.78);
}

.theme-nav-link:hover {
    color: #f9fafb;
    background: rgba(15, 23, 42, 0.9);
}

.theme-nav-link.active {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

/* HERO -------------------------------------------------------------------- */

.theme-hero {
    background: var(--theme-gradient-dark);
    position: relative;
    overflow: hidden;
}

.theme-hero::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 10% 20%, rgba(34, 197, 94, 0.22), transparent 60%),
        radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.28), transparent 60%),
        radial-gradient(circle at 50% 80%, rgba(15, 23, 42, 0.9), #020617);
    opacity: 0.9;
    pointer-events: none;
}

.theme-hero-title,
.theme-hero-subtitle {
    position: relative;
    z-index: 1;
    color: #f9fafb;
}

.theme-hero-subtitle {
    color: rgba(209, 213, 219, 0.9);
}

/* CARDS ------------------------------------------------------------------- */

.theme-card {
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 55%),
                rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: var(--theme-color-text_primary, #e5e7eb);
}

.theme-card-hover:hover {
    border-color: rgba(34, 197, 94, 0.65);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.85);
    transform: translateY(-2px);
}

/* BUTTONS ----------------------------------------------------------------- */

.theme-btn-primary {
    background-image: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #22c55e 100%);
    box-shadow: 0 18px 50px rgba(34, 197, 94, 0.5);
    color: #020617;
}

.theme-btn-primary:hover {
    box-shadow: 0 26px 70px rgba(34, 197, 94, 0.7);
}

.theme-btn-secondary {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: #e5e7eb;
}

.theme-btn-secondary:hover {
    background: rgba(15, 23, 42, 1);
    border-color: #22c55e;
    color: #f9fafb;
}

.theme-btn-ghost {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: rgba(209, 213, 219, 0.85);
}

.theme-btn-ghost:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.7);
}

/* FOOTER ------------------------------------------------------------------ */

.theme-footer {
    background: radial-gradient(circle at top, rgba(34, 197, 94, 0.22), transparent 60%),
                #020617;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    color: rgba(229, 231, 235, 0.9);
}

.theme-footer-about {
    color: rgba(156, 163, 175, 0.95);
}

.theme-footer-link {
    color: rgba(209, 213, 219, 0.9);
}

.theme-footer-link:hover {
    color: #a7f3d0;
}

/* FORMS ------------------------------------------------------------------- */

.theme-form-input,
.theme-form-select,
.theme-form-textarea {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.9);
    color: #e5e7eb;
}

.theme-form-input::placeholder,
.theme-form-textarea::placeholder {
    color: rgba(148, 163, 184, 0.9);
}

.theme-form-input:focus,
.theme-form-select:focus,
.theme-form-textarea:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.5);
    background: rgba(15, 23, 42, 0.95);
    color: #f9fafb;
}

.theme-form-label {
    color: rgba(209, 213, 219, 0.95);
}

/* ALERTS ------------------------------------------------------------------ */

.theme-alert {
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(31, 41, 55, 1);
    color: #e5e7eb;
}

.theme-alert-success {
    border-left: 3px solid #22c55e;
}

.theme-alert-danger {
    border-left: 3px solid #f97373;
}

.theme-alert-warning {
    border-left: 3px solid #fbbf24;
}

.theme-alert-info {
    border-left: 3px solid #38bdf8;
}

/* TABLES ------------------------------------------------------------------ */

.theme-table thead th {
    background: rgba(15, 23, 42, 0.95);
    color: rgba(229, 231, 235, 0.95);
    border-bottom-color: rgba(55, 65, 81, 1);
}

.theme-table tbody tr {
    border-bottom-color: rgba(31, 41, 55, 0.9);
}

.theme-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.75);
}

.theme-table tbody tr:hover {
    background: rgba(15, 23, 42, 0.9);
}

/* BOOTSTRAP UTILITY COLOR OVERRIDES -------------------------------------- */

.text-muted {
    color: rgba(148, 163, 184, 0.9) !important;
}

.text-secondary {
    color: rgba(209, 213, 219, 0.9) !important;
}

.text-primary {
    color: #22c55e !important;
}

.hover-primary:hover {
    color: #22c55e !important;
}

/* SERVICES / PRICING CARDS ----------------------------------------------- */

.theme-service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.theme-service-header {
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.theme-service-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    margin-bottom: 0.75rem;
}

.theme-service-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.theme-service-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.theme-service-price-amount {
    font-size: 1.5rem;
    font-weight: 700;
}

.theme-service-price-period {
    font-size: 0.85rem;
    color: rgba(156, 163, 175, 0.9);
}

.theme-service-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.theme-service-description {
    font-size: 0.95rem;
    color: rgba(209, 213, 219, 0.9);
}

/* SECTION & HERO SPACING ------------------------------------------------- */

.theme-hero-page {
    padding-top: var(--theme-space-10, 4.5rem);
    padding-bottom: var(--theme-space-10, 4.5rem);
}

.theme-section {
    padding-top: var(--theme-space-10, 4.5rem);
    padding-bottom: var(--theme-space-10, 4.5rem);
}

.theme-section-sm {
    padding-top: var(--theme-space-6, 2.5rem);
    padding-bottom: var(--theme-space-6, 2.5rem);
}

.theme-section + .theme-section,
.theme-section + .theme-section-alt,
.theme-section-alt + .theme-section,
.theme-section-alt + .theme-section-alt {
    margin-top: var(--theme-space-4, 1.5rem);
}
