/* ===== NAKSHATRA CALCULATOR - Tool Specific CSS ===== */

/* ---- Form Box ---- */
.nk-form-box {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(48, 43, 99, 0.4);
}

.nk-form-box h2 {
    color: #e2c97e;
    font-size: 22px;
    margin-bottom: 24px;
    text-align: center;
}

.nk-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.nk-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nk-form-group label {
    color: #c9b8ff;
    font-size: 14px;
    font-weight: 600;
}

.nk-form-group input,
.nk-form-group select {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    transition: border-color 0.2s;
}

.nk-form-group input:focus,
.nk-form-group select:focus {
    outline: none;
    border-color: #e2c97e;
    background: rgba(255, 255, 255, 0.15);
}

.nk-form-group select option {
    background: #302b63;
    color: #fff;
}

.nk-form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* ---- Calc Button ---- */
.nk-calc-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #e2c97e, #c9921a);
    color: #1a1a2e;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(226, 201, 126, 0.35);
}

.nk-calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(226, 201, 126, 0.5);
}

/* ---- Result Box ---- */
.nk-result {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    box-shadow: 0 6px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

/* Header */
.nk-res-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #0f0c29, #302b63);
    color: #fff;
}

.nk-res-big {
    font-size: 64px;
    flex-shrink: 0;
    line-height: 1;
}

.nk-res-name {
    font-size: 26px;
    font-weight: 800;
    color: #e2c97e;
    margin-bottom: 4px;
}

.nk-res-hindi {
    font-size: 18px;
    color: #c9b8ff;
    margin-bottom: 6px;
}

.nk-res-rashi {
    font-size: 15px;
    color: #a5b4fc;
}

/* Details Grid */
.nk-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #f0f0f0;
    border-top: 1px solid #e5e7eb;
}

.nk-detail-card {
    background: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    transition: background 0.2s;
}

.nk-detail-card:hover {
    background: #f5f3ff;
}

.nk-dc-icon {
    font-size: 22px;
}

.nk-dc-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nk-dc-val {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

/* Dasha Box */
.nk-dasha-box {
    background: linear-gradient(135deg, #fdf4ff, #fce4f6);
    padding: 18px 28px;
    border-top: 2px solid #f0e0ff;
    border-bottom: 2px solid #f0e0ff;
}

.nk-dasha-title {
    font-size: 16px;
    font-weight: 700;
    color: #6b21a8;
    margin-bottom: 4px;
}

.nk-dasha-rem {
    font-size: 13px;
    color: #7c3aed;
}

/* Qualities */
.nk-qualities {
    padding: 20px 28px;
    border-bottom: 2px solid #f3f4f6;
}

.nk-qual-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.nk-qual-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.8;
}

/* Symbol Row */
.nk-symbol-row {
    display: flex;
    gap: 16px;
    padding: 14px 28px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.nk-symbol-item {
    font-size: 14px;
    color: #374151;
}

/* Remedy */
.nk-remedy {
    background: linear-gradient(135deg, #fffbf0, #fef3c7);
    padding: 18px 28px;
    border-top: 2px solid #fde68a;
}

.nk-remedy-title {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 8px;
}

.nk-remedy-text {
    font-size: 14px;
    color: #78350f;
    line-height: 1.7;
}

/* ---- Browse Section ---- */
.nk-browse-section {
    margin-bottom: 30px;
}

.nk-browse-section h2 {
    font-size: 22px;
    color: #1f2937;
    margin-bottom: 18px;
}

.nk-browse-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
}

.nk-browse-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.nk-browse-card:hover {
    border-color: #7c3aed;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.18);
    background: #f5f3ff;
}

.nk-bc-num {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 2px;
}

.nk-bc-emoji {
    font-size: 24px;
    margin-bottom: 4px;
    display: block;
}

.nk-bc-name {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
}

.nk-bc-hindi {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 3px;
}

.nk-bc-lord {
    font-size: 10px;
    color: #7c3aed;
    font-weight: 600;
    background: #ede9fe;
    border-radius: 20px;
    padding: 2px 6px;
    display: inline-block;
}

/* ---- Quick Popup ---- */
.nk-quick-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.nk-qp-inner {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    max-width: 460px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.nk-qp-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: #374151;
    transition: background 0.2s;
}

.nk-qp-close:hover { background: #e5e7eb; }

.nk-qp-emoji {
    font-size: 52px;
    margin-bottom: 10px;
}

.nk-qp-name {
    font-size: 20px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 6px;
}

.nk-qp-lord {
    font-size: 14px;
    color: #7c3aed;
    font-weight: 600;
    margin-bottom: 12px;
}

.nk-qp-qual {
    font-size: 14px;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 12px;
    text-align: left;
}

.nk-qp-remedy {
    background: #fef3c7;
    border-radius: 10px;
    padding: 12px;
    font-size: 13px;
    color: #78350f;
    margin-bottom: 12px;
    text-align: left;
}

.nk-qp-lucky {
    font-size: 14px;
    color: #374151;
    background: #f0f9ff;
    border-radius: 10px;
    padding: 10px;
}

/* ---- Info / Features shared ---- */
.info-box {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
}

.info-box h4 {
    color: #4c1d95;
    font-size: 20px;
    margin-bottom: 18px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.info-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}

.info-item strong {
    display: block;
    color: #7c3aed;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.features-box {
    background: linear-gradient(135deg, #fffbf0, #fef3c7);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
}

.features-box h4 {
    color: #92400e;
    font-size: 20px;
    margin-bottom: 16px;
}

.features-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.features-box ul li {
    font-size: 14px;
    color: #374151;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.features-box ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #d97706;
    font-weight: 700;
}

.features-box ul li strong {
    color: #92400e;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .nk-browse-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .nk-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nk-form-grid {
        grid-template-columns: 1fr;
    }
    .nk-browse-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .nk-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nk-res-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .nk-res-big {
        font-size: 48px;
    }
    .nk-res-name {
        font-size: 20px;
    }
    .nk-qualities,
    .nk-remedy,
    .nk-dasha-box {
        padding: 16px 20px;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nk-form-box {
        padding: 22px 16px;
    }
    .nk-browse-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .nk-bc-emoji {
        font-size: 20px;
    }
    .nk-bc-name {
        font-size: 11px;
    }
    .nk-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nk-qp-inner {
        padding: 24px 18px;
    }
}