/* Astro Soulmate – Marriage Matching Plugin Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Noto+Sans+Tamil&family=Noto+Sans+Telugu&family=Noto+Sans+Kannada&family=Noto+Sans+Malayalam&display=swap');

:root {
    --asm-primary:    #7B3FA0;
    --asm-secondary:  #E91E8C;
    --asm-gold:       #F5A623;
    --asm-green:      #27AE60;
    --asm-red:        #E74C3C;
    --asm-orange:     #F39C12;
    --asm-bg:         #FDF8FF;
    --asm-card-bg:    #FFFFFF;
    --asm-border:     #E8D5F5;
    --asm-text:       #2C1A3E;
    --asm-muted:      #7A6B8A;
    --asm-radius:     12px;
    --asm-shadow:     0 4px 20px rgba(123,63,160,0.12);
    --asm-shadow-lg:  0 8px 40px rgba(123,63,160,0.18);
}

.asm-wrap {
    font-family: 'Poppins', 'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Kannada', 'Noto Sans Malayalam', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px;
    color: var(--asm-text);
    background: var(--asm-bg);
    border-radius: var(--asm-radius);
}

/* ---- Language Switcher ---- */
.asm-lang-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.asm-lang-btn {
    padding: 6px 14px;
    border: 2px solid var(--asm-border);
    border-radius: 20px;
    background: #fff;
    color: var(--asm-primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.asm-lang-btn:hover,
.asm-lang-btn.asm-lang-active {
    background: var(--asm-primary);
    border-color: var(--asm-primary);
    color: #fff;
}

/* ---- Ayanamsa Toggle ---- */
.asm-ayanamsa-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.asm-ayanamsa-toggle label {
    font-weight: 600;
    color: var(--asm-muted);
    font-size: 14px;
}

.asm-ayan-btn {
    padding: 6px 16px;
    border: 2px solid var(--asm-primary);
    border-radius: 20px;
    background: transparent;
    color: var(--asm-primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.asm-ayan-btn.active,
.asm-ayan-btn:hover {
    background: var(--asm-primary);
    color: #fff;
}

/* ---- Form Layout ---- */
.asm-form {
    background: var(--asm-card-bg);
    border-radius: var(--asm-radius);
    padding: 28px;
    box-shadow: var(--asm-shadow);
    border: 1px solid var(--asm-border);
}

.asm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

@media (max-width: 640px) {
    .asm-form-row { grid-template-columns: 1fr; }
}

.asm-form-col {
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--asm-border);
    background: var(--asm-bg);
}

.asm-col-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 18px;
    color: var(--asm-primary);
}

.asm-boy-title  { color: #2980B9; }
.asm-girl-title { color: #C0392B; }

/* ---- Fields ---- */
.asm-field {
    margin-bottom: 16px;
}

.asm-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--asm-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.asm-field input[type="text"],
.asm-field input[type="number"],
.asm-field select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--asm-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--asm-text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.asm-field input:focus,
.asm-field select:focus {
    outline: none;
    border-color: var(--asm-primary);
    box-shadow: 0 0 0 3px rgba(123,63,160,0.15);
}

.asm-date-row,
.asm-time-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.asm-dob-day, .asm-dob-month, .asm-time-hh, .asm-time-mm { width: 70px !important; }
.asm-dob-year { width: 100px !important; }
.asm-colon { font-size: 20px; font-weight: 700; color: var(--asm-primary); }

/* ---- Submit ---- */
.asm-submit-row {
    text-align: center;
    margin-top: 24px;
}

.asm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}

.asm-btn-submit {
    background: linear-gradient(135deg, var(--asm-primary), var(--asm-secondary));
    color: #fff;
    box-shadow: 0 4px 16px rgba(123,63,160,0.35);
}

.asm-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123,63,160,0.45);
}

.asm-btn-print {
    background: transparent;
    border: 2px solid var(--asm-primary);
    color: var(--asm-primary);
}

.asm-btn-print:hover {
    background: var(--asm-primary);
    color: #fff;
}

/* ---- Loading Spinner ---- */
.asm-loading {
    text-align: center;
    padding: 40px;
}

.asm-spinner {
    display: inline-block;
    width: 52px;
    height: 52px;
    border: 5px solid var(--asm-border);
    border-top-color: var(--asm-primary);
    border-radius: 50%;
    animation: asm-spin 0.8s linear infinite;
    margin-bottom: 12px;
}

@keyframes asm-spin { to { transform: rotate(360deg); } }

/* ---- Report ---- */
.asm-report {
    margin-top: 32px;
    animation: asm-fade-in 0.4s ease;
}

@keyframes asm-fade-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.asm-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--asm-border);
}

.asm-report-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--asm-primary);
}

.asm-ayanamsa-badge {
    background: var(--asm-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* ---- Profiles ---- */
.asm-profiles {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
}

@media (max-width: 600px) {
    .asm-profiles { grid-template-columns: 1fr; }
    .asm-heart { font-size: 28px !important; text-align: center; }
}

.asm-profile {
    background: var(--asm-card-bg);
    border-radius: var(--asm-radius);
    padding: 20px;
    box-shadow: var(--asm-shadow);
    border: 1px solid var(--asm-border);
}

.asm-profile h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--asm-primary);
}

.asm-profile.boy h3 { color: #2980B9; }
.asm-profile.girl h3 { color: #C0392B; }

.asm-person-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--asm-text);
    margin: 0 0 12px;
}

.asm-profile table { width: 100%; border-collapse: collapse; }
.asm-profile table td {
    padding: 5px 4px;
    font-size: 14px;
    color: var(--asm-muted);
    border-bottom: 1px solid var(--asm-border);
}
.asm-profile table td:first-child { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.asm-profile table td strong { color: var(--asm-text); font-size: 15px; }

.asm-heart { font-size: 36px; text-align: center; }

/* ---- Score Box ---- */
.asm-score-box {
    background: var(--asm-card-bg);
    border-radius: var(--asm-radius);
    padding: 28px;
    text-align: center;
    box-shadow: var(--asm-shadow-lg);
    border: 2px solid var(--asm-border);
    margin-bottom: 28px;
}

.asm-score-number {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.asm-score-pct {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--asm-muted);
}

.asm-score-verdict {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.asm-verdict-excellent .asm-score-number,
.asm-verdict-excellent .asm-score-verdict { color: var(--asm-green); }
.asm-verdict-good .asm-score-number,
.asm-verdict-good .asm-score-verdict { color: #27AE60; }
.asm-verdict-average .asm-score-number,
.asm-verdict-average .asm-score-verdict { color: var(--asm-orange); }
.asm-verdict-needs-consideration .asm-score-number,
.asm-verdict-needs-consideration .asm-score-verdict { color: var(--asm-red); }

.asm-score-bar {
    height: 16px;
    background: var(--asm-border);
    border-radius: 8px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.asm-score-fill {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--asm-primary), var(--asm-secondary));
    transition: width 1s ease;
}

/* ---- Porutham Table ---- */
.asm-porutham-section {
    background: var(--asm-card-bg);
    border-radius: var(--asm-radius);
    padding: 24px;
    box-shadow: var(--asm-shadow);
    border: 1px solid var(--asm-border);
    margin-bottom: 28px;
}

.asm-porutham-section h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--asm-primary);
}

.asm-porutham-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.asm-porutham-table thead tr {
    background: var(--asm-primary);
    color: #fff;
}

.asm-porutham-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}

.asm-porutham-table tbody tr {
    border-bottom: 1px solid var(--asm-border);
    transition: background 0.15s;
}

.asm-porutham-table tbody tr:hover { background: #FDF8FF; }

.asm-porutham-table td {
    padding: 10px 14px;
    color: var(--asm-text);
}

.asm-match td:first-child { font-weight: 600; color: var(--asm-green); }
.asm-no-match td:first-child { font-weight: 600; color: var(--asm-red); }
.asm-dosha td:first-child { font-weight: 700; color: var(--asm-orange); }
.asm-dosha { background: #FFF8F0 !important; }

.asm-detail-text { color: var(--asm-muted); font-size: 13px; }

/* ---- AI Section ---- */
.asm-ai-section {
    background: linear-gradient(135deg, #FFF5FF, #FFF0F8);
    border: 2px solid #E8C5F5;
    border-radius: var(--asm-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--asm-shadow);
}

.asm-ai-section h3 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: var(--asm-primary);
}

.asm-ai-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--asm-text);
}

/* ---- Print ---- */
.asm-print-btn-wrap {
    text-align: center;
    margin-top: 20px;
}

@media print {
    .asm-lang-switcher,
    .asm-form,
    .asm-ayanamsa-toggle,
    .asm-loading,
    .asm-print-btn-wrap { display: none !important; }
    .asm-report { margin-top: 0; }
    .asm-score-fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- Admin ---- */
.asm-admin-wrap h1 { color: var(--asm-primary); }
