/* ═══════════════════════════════════════════════════════════════════
   Eazy SaaS – Site Stylesheet
   Matches the original TypeScript site design: DM Sans + Space Grotesk,
   warm tones, pink primary, card-based layout.
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --primary: #e63370;
    --primary-light: rgba(230, 51, 112, 0.08);
    --primary-shadow: rgba(230, 51, 112, 0.25);
    --bg: hsl(30 50% 98%);
    --fg: hsl(220 20% 14%);
    --card: #ffffff;
    --border: hsl(30 20% 90%);
    --muted: hsl(220 10% 46%);
    --secondary-bg: hsl(30 40% 95%);
    --service-blue: hsl(210 70% 50%);
    --service-pink: hsl(348 83% 55%);
    --service-green: hsl(152 60% 42%);
    --radius: 0.75rem;
}

/* ── Typography ─────────────────────────────────────────────────── */
body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg);
    color: var(--fg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
}

.text-primary { color: var(--primary) !important; }

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: #d12963;
    border-color: #d12963;
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ── Site Header ────────────────────────────────────────────────── */
.site-header {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 50;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.logo-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.site-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fg);
    font-family: 'Space Grotesk', sans-serif;
}

.tech-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    background: var(--secondary-bg);
    color: var(--fg);
}

/* ── Hero Section ───────────────────────────────────────────────── */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 6rem 0 7rem;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url('/images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.2;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(230, 51, 112, 0.08),
        rgba(220, 150, 70, 0.08),
        rgba(50, 130, 220, 0.06));
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
}

.hero-cta {
    padding: 12px 32px;
    font-weight: 600;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px var(--primary-shadow);
    transition: all 0.3s ease;
}
.hero-cta:hover {
    box-shadow: 0 12px 32px var(--primary-shadow);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .hero-title { font-size: 3.5rem; }
}
@media (min-width: 1024px) {
    .hero-title { font-size: 4rem; }
}

/* ── Animations ─────────────────────────────────────────────────── */
.animate-fade-in {
    animation: fadeInUp 0.6s ease both;
}
.animate-fade-in-delay {
    animation: fadeInUp 0.6s ease 0.15s both;
}
.animate-fade-in-delay-2 {
    animation: fadeInUp 0.6s ease 0.3s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Sections ───────────────────────────────────────────────────── */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fg);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
}

.bg-section-alt {
    background-color: var(--card);
}

/* ── Highlight Cards (About) ────────────────────────────────────── */
.highlight-card {
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.highlight-card:hover {
    border-color: rgba(230,51,112,0.3);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
    color: var(--primary);
}

/* ── Service Cards ──────────────────────────────────────────────── */
.service-group-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.text-service-blue { color: var(--service-blue) !important; }
.text-service-pink { color: var(--service-pink) !important; }
.text-service-green { color: var(--service-green) !important; }

.service-card {
    padding: 1.25rem;
    border-radius: var(--radius);
    background: rgba(30, 20, 10, 0.02);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
}
.service-card:hover {
    border-color: rgba(230,51,112,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ── Review Cards ───────────────────────────────────────────────── */
.review-card {
    position: relative;
    padding: 2rem;
    border-radius: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
}

.review-quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: rgba(230,51,112,0.15);
}

.review-text {
    font-style: italic;
    line-height: 1.7;
    color: var(--fg);
}

.review-author {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
}

.review-stars i {
    font-size: 1rem;
}

/* ── Blog Cards ─────────────────────────────────────────────────── */
.blog-card {
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    border-color: rgba(230,51,112,0.3);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-content {
    line-height: 1.8;
    font-size: 1.05rem;
}
.blog-content h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.blog-content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.blog-content p { margin-bottom: 1rem; }
.blog-content img { max-width: 100%; border-radius: var(--radius); margin: 1rem 0; }
.blog-content pre { background: #f5f5f5; padding: 1rem; border-radius: 8px; overflow-x: auto; }
.blog-content code { color: var(--primary); }
.blog-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--muted);
}

/* ── Contact Section ────────────────────────────────────────────── */
.contact-card {
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.contact-card .form-control {
    border-color: var(--border);
    border-radius: 8px;
    padding: 10px 16px;
}
.contact-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Customer HTML Content */
.customer-html-content img { max-width: 100%; border-radius: var(--radius); }
.customer-html-content h1, .customer-html-content h2, .customer-html-content h3 {
    font-family: 'Space Grotesk', sans-serif;
}

/* ── Site Footer ────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
}

/* ── Login Page ─────────────────────────────────────────────────── */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg), hsl(30 30% 94%));
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
}

.login-card {
    background: var(--card);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

/* ── Admin Layout ───────────────────────────────────────────────── */
.admin-body {
    background: #f5f6f8;
    min-height: 100vh;
}

.admin-navbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.admin-navbar .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.admin-navbar .nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.dash-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ── Rating Stars (Admin) ───────────────────────────────────────── */
.rating-star {
    cursor: pointer;
    transition: transform 0.15s ease;
}
.rating-star:hover { transform: scale(1.2); }
.rating-star i { color: #dee2e6; transition: color 0.15s ease; }

/* ── SEO Preview ────────────────────────────────────────────────── */
.seo-preview {
    font-family: Arial, sans-serif;
}
.seo-title {
    color: #1a0dab;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.seo-url {
    color: #006621;
    font-size: 0.8rem;
    margin: 2px 0;
}
.seo-desc {
    color: #545454;
    font-size: 0.8rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Badge Overrides ────────────────────────────────────────────── */
.bg-primary-subtle {
    background-color: var(--primary-light) !important;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .hero-section { padding: 4rem 0 5rem; }
    .section-title { font-size: 1.75rem; }
}
