/* * vastu-style.css
 * Production-ready styling for the Interactive Vastu Chakra Compass plugin.
 * Includes full CSS Grid layout and Advanced Dashboard Card stylings.
 */

.vastu-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #fdfdfd;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- Toolbar & Controls --- */
.vastu-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 24px;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 10;
}

.vastu-btn {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.vastu-btn-primary {
    background-color: #00796b;
    color: #ffffff;
}

.vastu-btn-primary:hover {
    background-color: #004d40;
}

.vastu-manual-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.vastu-manual-controls input[type="range"] {
    width: 150px;
    cursor: pointer;
}

.vastu-manual-controls input[type="number"] {
    width: 60px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.vastu-language-toggle {
    display: flex;
    background: #eeeeee;
    border-radius: 6px;
    overflow: hidden;
}

.vastu-language-toggle button {
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #555555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vastu-language-toggle button.active {
    background: #333333;
    color: #ffffff;
}

/* --- Main Layout Grid --- */
.vastu-main-content {
    display: grid;
    grid-template-columns: 1fr 450px; /* Wheel left, 450px fixed card right */
    gap: 24px;
    padding: 24px;
    align-items: stretch;
}

/* --- Viewer Area (The Wheel) --- */
.vastu-viewer-area {
    position: relative;
    width: min(500px, 100%);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

@media (max-width:768px){

    .vastu-main-content{
        padding:12px;
        gap:20px;
    }

    .vastu-direction-badge{
        margin-bottom:8px;
    }

    .vastu-viewer-area{
        width:95vw;
        max-width:420px;
    }

}

#compass-camera-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#vastu-overlay-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: auto; 
}

/* --- Detailed Info Card Base --- */
.vastu-detail-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    color: #333333;
}

/* --- Advanced Dashboard Card Styling --- */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.card-header-flex h3 {
    margin: 0;
    border: none;
    padding: 0;
    color: #6a1b9a; /* Deep purple */
    font-size: 20px;
}

.degree-span {
    font-size: 14px;
    font-weight: bold;
    color: #6a1b9a;
}

.mt-10 { margin-top: 10px; }
.text-center { text-align: center; }
.text-purple { color: #6a1b9a !important; }
.text-blue { color: #1565c0 !important; }

.stats-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.stats-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.stat-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #757575;
    margin-bottom: 4px;
    font-weight: 600;
}

.stat-value {
    font-size: 13px;
    font-weight: 600;
    color: #212121;
    line-height: 1.4;
}

/* Custom Colored Boxes */
.highlight-orange { border-color: #ffe0b2; background: #fff8e1; }
.highlight-orange .stat-value { color: #d84315; }
.highlight-gray { background: #fafafa; }

.box-success { background: #f1f8e9; border-left: 4px solid #4caf50; border-color: #c8e6c9; }
.success-label { color: #2e7d32; }

.box-danger { background: #ffebee; border-left: 4px solid #f44336; border-color: #ffcdd2; }
.danger-label { color: #c62828; }

.box-info { background: #e0f7fa; border-left: 4px solid #00bcd4; border-color: #b2ebf2; }
.info-label { color: #00838f; }

.box-warning { background: #fffde7; border-left: 4px solid #fbc02d; border-color: #fff9c4; }
.warning-label { color: #f57f17; }

.box-conflict { background: #fbe9e7; border-left: 4px solid #ff5722; border-color: #ffccbc; }
.conflict-label { color: #d84315; }

.box-remedy { background: #fff8e1; border-left: 4px solid #ffc107; border-color: #ffecb3; }
.remedy-label { color: #ff8f00; }

.box-binary { background: #f3e5f5; border: 1px solid #e1bee7; align-items: center;}
.binary-label { color: #8e24aa; }

.box-summary { background: #f8f9fa; border: 1px solid #cfd8dc; }
.summary-label { color: #546e7a; }

/* --- Responsive Breakpoints --- */
@media (max-width: 992px) {
    .vastu-main-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .vastu-viewer-wrapper{
    width:100%;
}

.vastu-viewer-area{
    width:100%;
    max-width:500px;
    margin:0 auto;
}
}

@media (max-width: 600px) {
    .vastu-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .vastu-manual-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vastu-manual-controls input[type="range"] {
        width: 100%;
    }

    .vastu-language-toggle button {
        flex: 1;
    }
    
    .stats-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid-2 {
        grid-template-columns: 1fr;
    }
}


/* ===== Direction Bubble ===== */

.vastu-viewer-wrapper{
    display:flex;
    flex-direction:column;
    align-items:center;
    width:100%;
}

.vastu-direction-badge{

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    margin-bottom:15px;

    padding:12px 24px;

    background:#ffffff;

    border:2px solid #ff6600;

    border-radius:20px;

    box-shadow:0 4px 15px rgba(0,0,0,.08);

    min-width:220px;
}


@media(max-width:768px){

    .vastu-direction-badge{

        min-width:180px;

        padding:10px 18px;
    }

    #vastu-direction-name{

        font-size:22px;
    }

    #vastu-direction-hindi{

        font-size:16px;
    }

    #vastu-direction-degree{

        font-size:16px;
    }
}

.vastu-direction-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    padding:12px 20px;

    background:#fff;
    border:2px solid #ff6600;
    border-radius:16px;

    font-size:22px;
    font-weight:700;
    color:#ff6600;

    box-shadow:0 4px 15px rgba(0,0,0,.08);
}

@media(max-width:768px){

    .vastu-direction-badge{
        font-size:18px;
        padding:10px 16px;
    }

}

/* ==========================================================
   V2.2 – Practical Vastu Guidance
========================================================== */

.box-remedy .stat-value{
    line-height:1.7;
}

#card-general-remedy{
    font-size:14px;
    color:#5d4037;
    line-height:1.7;
}

#card-avoid-elements,
#card-avoid-colors{
    color:#d84315;
    line-height:1.8;
}

#card-good-for{
    color:#2e7d32;
    line-height:1.8;
}

#card-bad-for{
    color:#c62828;
    line-height:1.8;
}

#card-good-for br,
#card-bad-for br{
    margin-bottom:4px;
}

.box-success #card-good-for{
    font-weight:600;
}

.box-danger #card-bad-for{
    font-weight:600;
}

.box-warning #card-avoid-elements,
.box-warning #card-avoid-colors{
    font-weight:600;
}

.box-remedy #card-general-remedy{
    font-weight:500;
}

/* ---------- Mobile ---------- */

@media (max-width:768px){

    #card-general-remedy,
    #card-good-for,
    #card-bad-for,
    #card-avoid-elements,
    #card-avoid-colors{

        font-size:13px;
        line-height:1.7;

    }

}