/* MilanSetu - Complete Stylesheet */
/* Maroon & Gold Matrimonial Theme */

:root {
    --primary: #7c1d3e;
    --primary-light: #9b2d5a;
    --primary-dark: #5a1530;
    --gold: #c9a227;
    --gold-light: #e8c94a;
    --gold-dark: #a8841e;
    --bg: #faf7f2;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --border: #e5e1d8;
    --success: #059669;
    --danger: #dc2626;
    --warning: #f59e0b;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(124, 29, 62, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans Devanagari', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 24px; border-radius: 8px; font-weight: 600; font-size: 14px;
    cursor: pointer; border: none; transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(124,29,62,0.3); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--primary-dark); font-weight: 700; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(201,162,39,0.4); }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-success { background: var(--success); color: #fff; }

/* ---- HEADER ---- */
.header {
    background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { text-decoration: none; font-size: 20px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.logo-icon { color: var(--primary); font-size: 24px; }
.gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.notif-link { position: relative; }
.notif-badge { position: absolute; top: -8px; right: -8px; background: var(--gold); color: var(--primary-dark); font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: pulse 2s infinite; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
    font-size: 14px; font-family: inherit; background: var(--bg-card); transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,29,62,0.1); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ---- CARDS ---- */
.card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow); transition: all 0.3s;
}
.card:hover { box-shadow: 0 8px 30px rgba(124,29,62,0.12); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }

/* ---- PROFILE CARD ---- */
.profile-card { display: flex; gap: 16px; align-items: flex-start; }
.profile-avatar { width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, rgba(124,29,62,0.1), rgba(201,162,39,0.1)); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-info h3 { font-size: 16px; font-weight: 700; }
.profile-info p { font-size: 13px; color: var(--text-muted); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; margin: 2px; }
.badge-muted { background: #f3f4f6; color: var(--text-muted); }
.badge-outline { border: 1px solid var(--border); color: var(--text-muted); }
.badge-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--primary-dark); font-weight: 700; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }

/* ---- TICKET CARD ---- */
.ticket-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-card); box-shadow: var(--shadow); }
.ticket-header { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
.ticket-body { padding: 20px; }
.ticket-body .info-row { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.ticket-body .info-row .icon { color: var(--gold); }
.ticket-actions { padding: 0 20px 16px; display: flex; gap: 8px; }

/* ---- STEP PROGRESS ---- */
.steps { display: flex; gap: 8px; max-width: 300px; margin: 0 auto; }
.step-bar { flex: 1; height: 6px; border-radius: 3px; background: #e5e7eb; }
.step-bar.active { background: linear-gradient(135deg, var(--gold), var(--gold-light)); }

/* ---- LANDING PAGE ---- */
.hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff; text-align: center; padding: 80px 16px; min-height: 70vh;
    display: flex; align-items: center; justify-content: center;
}
.hero h1 { font-size: 42px; font-weight: 700; margin-bottom: 16px; }
.hero p { font-size: 18px; opacity: 0.9; max-width: 600px; margin: 0 auto 32px; }
.hero .btn { font-size: 16px; padding: 14px 36px; }

.section { padding: 60px 16px; }
.section-title { text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 40px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.feature-card { text-align: center; padding: 32px 24px; }
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }

.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.plan-card { text-align: center; padding: 32px 24px; position: relative; }
.plan-card.popular { border: 2px solid var(--gold); }
.plan-card.popular::before { content: 'लोकप्रिय'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--primary-dark); padding: 2px 16px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.plan-price { font-size: 32px; font-weight: 700; color: var(--primary); margin: 12px 0; }
.plan-price span { font-size: 14px; color: var(--text-muted); font-weight: 400; }

/* ---- MATCH CARD ---- */
.match-card { border-left: 4px solid var(--gold); }
.match-card.pending { border-left-color: var(--warning); }

/* ---- ADMIN ---- */
.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--primary-dark); color: #fff; padding: 20px 0; }
.admin-sidebar .logo { color: #fff; padding: 0 20px; margin-bottom: 30px; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; transition: all 0.2s; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-content { padding: 24px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 20px; text-align: center; }
.stat-card .stat-number { font-size: 32px; font-weight: 700; color: var(--primary); }
.stat-card .stat-label { font-size: 13px; color: var(--text-muted); }

/* ---- TABLE ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: #f9fafb; font-weight: 600; color: var(--text-muted); font-size: 13px; }
tr:hover { background: #faf7f2; }

/* ---- AUTH PAGE ---- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-box { width: 100%; max-width: 480px; }
.auth-box .logo { justify-content: center; font-size: 24px; margin-bottom: 8px; }

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.text-gold { color: var(--gold); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); text-decoration: none; font-size: 14px; margin-bottom: 16px; }
.back-link:hover { color: var(--text); }

/* ---- FOOTER ---- */
.footer { text-align: center; padding: 24px; color: var(--text-muted); font-size: 13px; border-top: 1px solid var(--border); margin-top: 40px; }

/* ---- ANIMATIONS ---- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.4s ease-out; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
    .nav-links.show { display: flex; }
    .mobile-menu-btn { display: block; }
    .form-row { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
}
