/*
 * Gangaputra Matrimony — Main Stylesheet
 * Built on Bootstrap 5
 */

/* ── Brand Colors ─────────────────────────────────── */
:root {
    --gp-primary:    #C0392B;   /* Deep red — auspicious */
    --gp-primary-dk: #962D22;
    --gp-gold:       #D4AC0D;
    --gp-light-bg:   #FFF8F8;
    --gp-border:     #F5E0E0;
    --gp-text:       #2C2C2C;
}

/* Override Bootstrap primary */
.btn-primary       { background-color: var(--gp-primary); border-color: var(--gp-primary); }
.btn-primary:hover { background-color: var(--gp-primary-dk); border-color: var(--gp-primary-dk); }
.btn-outline-primary { color: var(--gp-primary); border-color: var(--gp-primary); }
.btn-outline-primary:hover { background-color: var(--gp-primary); color: white; }
.text-primary { color: var(--gp-primary) !important; }
.bg-primary   { background-color: var(--gp-primary) !important; }
.border-primary { border-color: var(--gp-primary) !important; }

/* ── Global ───────────────────────────────────────── */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--gp-text);
    background: #fff;
}

a { color: var(--gp-primary); }
a:hover { color: var(--gp-primary-dk); }

/* ── Top Bar ──────────────────────────────────────── */
.top-bar {
    background: var(--gp-primary);
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
}
.top-bar a { color: rgba(255,255,255,0.9); text-decoration: none; }
.top-bar a:hover { color: white; }

/* ── Navbar ───────────────────────────────────────── */
.navbar-brand { font-size: 1.3rem; }
.navbar .nav-link { font-weight: 500; color: var(--gp-text) !important; }
.navbar .nav-link:hover { color: var(--gp-primary) !important; }

/* ── Hero Section ─────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, #C0392B 0%, #962D22 50%, #7B1E16 100%);
    min-height: 440px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/images/pattern-dots.svg') repeat;
    opacity: 0.08;
}

.hero-search-box {
    border: none;
    background: white;
}

.hero-img {
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* ── Profile Card ─────────────────────────────────── */
.profile-card {
    border: 1px solid var(--gp-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(192, 57, 43, 0.12);
}

.profile-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: var(--gp-light-bg);
}

.profile-card .profile-id {
    font-size: 0.7rem;
    background: var(--gp-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.profile-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f8d7d7 0%, #fce4e4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-placeholder i {
    font-size: 4rem;
    color: #d4a0a0;
}

/* ── Profile Detail Page ──────────────────────────── */
.profile-main-photo {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
}

.profile-info-table td:first-child {
    color: #666;
    font-size: 0.85rem;
    width: 140px;
    padding: 6px 0;
}

.profile-info-table td:last-child {
    font-weight: 500;
    padding: 6px 0;
}

.profile-section-heading {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gp-primary);
    font-weight: 700;
    border-bottom: 2px solid var(--gp-border);
    padding-bottom: 6px;
    margin-bottom: 12px;
}

/* ── Dashboard ────────────────────────────────────── */
.dashboard-sidebar .nav-link {
    color: var(--gp-text);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.dashboard-sidebar .nav-link.active,
.dashboard-sidebar .nav-link:hover {
    background: var(--gp-light-bg);
    color: var(--gp-primary);
}

.dashboard-sidebar .nav-link i {
    width: 20px;
    margin-right: 8px;
}

.stat-card {
    border: 1px solid var(--gp-border);
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    text-align: center;
    transition: box-shadow 0.2s;
}

.stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 12px;
}

/* ── Search Page ──────────────────────────────────── */
.search-filters {
    background: #fff;
    border: 1px solid var(--gp-border);
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 70px;
}

.search-filters h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

/* ── Interest / Shortlist Buttons ─────────────────── */
.btn-interest {
    border: 1px solid var(--gp-primary);
    color: var(--gp-primary);
    background: transparent;
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 4px 14px;
    transition: all 0.2s;
}

.btn-interest:hover,
.btn-interest.sent {
    background: var(--gp-primary);
    color: white;
}

.btn-shortlist {
    border: 1px solid #888;
    color: #888;
    background: transparent;
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 4px 14px;
    transition: all 0.2s;
}

.btn-shortlist.saved,
.btn-shortlist:hover { border-color: var(--gp-gold); color: var(--gp-gold); }

/* ── Subscription Plans ───────────────────────────── */
.plan-card {
    border: 2px solid var(--gp-border);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    background: #fff;
}

.plan-card.featured {
    border-color: var(--gp-primary);
    box-shadow: 0 8px 30px rgba(192, 57, 43, 0.15);
    transform: scale(1.03);
}

.plan-card .plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gp-primary);
}

.plan-card .plan-feature {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 8px;
}

.plan-card .plan-feature i { color: var(--gp-primary); }

/* ── Chat / Messages ──────────────────────────────── */
.message-list { list-style: none; padding: 0; }

.message-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s;
}

.message-item:hover { background: var(--gp-light-bg); }
.message-item.unread { font-weight: 600; }

.message-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-bubble-sent {
    background: var(--gp-primary);
    color: white;
    border-radius: 16px 16px 4px 16px;
    padding: 8px 14px;
    max-width: 70%;
    margin-left: auto;
    font-size: 0.9rem;
}

.chat-bubble-received {
    background: #f1f1f1;
    border-radius: 16px 16px 16px 4px;
    padding: 8px 14px;
    max-width: 70%;
    font-size: 0.9rem;
}

/* ── Admin Panel ──────────────────────────────────── */
.admin-sidebar {
    background: #2C2C2C;
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background: rgba(192, 57, 43, 0.2);
    border-left: 3px solid var(--gp-primary);
}

.admin-sidebar .nav-link i { width: 20px; margin-right: 8px; }

/* ── How It Works Steps ───────────────────────────── */
.step-icon {
    width: 70px;
    height: 70px;
    background: var(--gp-light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gp-border);
}

/* ── Alerts ───────────────────────────────────────── */
.alert { border-radius: 8px; font-size: 0.9rem; }

/* ── Forms ────────────────────────────────────────── */
.form-label { font-size: 0.85rem; font-weight: 500; color: #555; }
.form-control:focus,
.form-select:focus {
    border-color: var(--gp-primary);
    box-shadow: 0 0 0 0.2rem rgba(192, 57, 43, 0.15);
}

/* ── Profile Completeness Bar ─────────────────────── */
.completeness-bar .progress-bar { background: var(--gp-primary); }

/* ── Badge Styles ─────────────────────────────────── */
.badge-premium { background: linear-gradient(90deg, #D4AC0D, #F1C40F); color: #333; }
.badge-elite   { background: linear-gradient(90deg, #C0392B, #962D22); color: white; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
    .hero-section { min-height: 300px; padding: 2rem 0; }
    .display-5 { font-size: 1.6rem; }
    .plan-card.featured { transform: none; }
    .search-filters { position: static; margin-bottom: 20px; }
    .profile-main-photo { height: 250px; }
}

/* ── Animations ───────────────────────────────────── */
.fade-in {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Print ────────────────────────────────────────── */
@media print {
    .navbar, footer, .top-bar, .btn, .search-filters { display: none !important; }
}
