/*
==========================================================================
Palika Sarkar Home & Atelier B.V. - Dashboard, Charts, Tabs & Studio Components
Palika Sarkar Atelier Studio & Collectie Styles
==========================================================================
*/

/* ========================================
   Studio Hero & Top Header Bar
======================================== */
.studio-hero {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 28px;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: 0 6px 22px var(--shadow);
}

.studio-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background-color: var(--surface-subtle);
    border: 1px solid var(--accent-copper);
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent-copper);
    margin-bottom: 14px;
}

.studio-hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.22;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.studio-hero-lead {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.65;
}

.studio-hero-media {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3;
    background-color: var(--bg-primary);
}

.studio-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========================================
   Content Wrapper (Palika Studio Grid)
======================================== */
.content-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 24px;
    margin-bottom: 28px;
}

.content-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.content-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* ========================================
   Stat Cards (Palika Studio)
======================================== */
.stat-card {
    background-color: var(--bg-card);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent-copper);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow);
}

.stat-card.primary {
    background: var(--accent-gradient);
    border: none;
}

.stat-card.primary .stat-label,
.stat-card.primary .stat-value,
.stat-card.primary .stat-change {
    color: #1c1c1e;
}

.stat-card.primary .stat-icon {
    background-color: rgba(28, 28, 30, 0.16);
}

.stat-card.primary .stat-icon svg {
    stroke: #1c1c1e;
}

.stat-icon {
    width: 46px;
    height: 46px;
    background-color: rgba(184, 115, 51, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    stroke: var(--accent-copper);
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.stat-change.positive {
    color: var(--gain);
    font-weight: 600;
}

/* ========================================
   Chart Cards & Interactive Tabs
======================================== */
.chart-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.chart-tab {
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.chart-tab:hover {
    color: var(--text-primary);
    background-color: var(--bg-card-hover);
}

.chart-tab.active {
    background: var(--accent-gradient);
    color: #1c1c1e;
    border-color: transparent;
}

.chart-container {
    position: relative;
    margin-top: 16px;
    width: 100%;
}

.line-chart,
.bar-chart {
    width: 100%;
    height: 190px;
    display: block;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   Bottom Row (Donut, Kiln Gauge & Harmony Meter)
======================================== */
.bottom-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.donut-chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.donut-chart {
    width: 116px;
    height: 116px;
    transform: rotate(-90deg);
    flex-shrink: 0;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot.klei { background-color: #b87333; }
.legend-dot.salie { background-color: #5a8a6a; }
.legend-dot.vlas { background-color: #d4945a; }
.legend-dot.kwarts { background-color: #4f5d65; }

.gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
}

.gauge {
    width: 128px;
    height: 84px;
}

.gauge-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 6px;
}

.gauge-label {
    font-size: 13.5px;
    color: var(--text-secondary);
    text-align: center;
}

.harmony-meter {
    margin-top: 14px;
}

.harmony-bar {
    height: 12px;
    background: linear-gradient(90deg, #b87333, #d4945a, #5a8a6a);
    border-radius: 6px;
    position: relative;
    margin: 14px 0;
}

.harmony-indicator {
    position: absolute;
    top: -4px;
    left: 74%;
    width: 20px;
    height: 20px;
    background-color: var(--text-primary);
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px var(--shadow);
}

.harmony-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   Atelier Collection Cards (3-Column Grid)
======================================== */
.atelier-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.atelier-card {
    background-color: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.atelier-card:hover {
    border-color: var(--accent-copper);
    transform: translateY(-3px);
    box-shadow: 0 10px 26px var(--shadow);
}

.atelier-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.atelier-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.atelier-card:hover .atelier-card-img img {
    transform: scale(1.04);
}

.atelier-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.atelier-card-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-copper);
    margin-bottom: 6px;
}

.atelier-card-body h2,
.atelier-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.atelier-card-body p {
    font-size: 14.5px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.atelier-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.atelier-price-tag {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ========================================
   Settings / Atelier Tabs (5-Tab Explorer)
======================================== */
.settings-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    flex-wrap: wrap;
}

.settings-tab {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.settings-tab:hover {
    color: var(--text-primary);
    border-color: var(--accent-copper);
}

.settings-tab.active {
    background: var(--accent-gradient);
    color: #1c1c1e;
    border-color: transparent;
}

.settings-content {
    display: none;
}

.settings-content.active {
    display: block;
}

/* ========================================
   Search, Filter Tabs & Specification Table
======================================== */
.search-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 240px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    width: 100%;
    font-family: inherit;
}

.search-box input:focus {
    outline: none;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    color: var(--text-primary);
    border-color: var(--accent-copper);
}

.filter-tab.active {
    background: var(--accent-gradient);
    color: #1c1c1e;
    border-color: transparent;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.catalog-table {
    width: 100%;
    border-collapse: collapse;
}

.catalog-table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

.catalog-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 14.5px;
    color: var(--text-primary);
}

.catalog-table tr:last-child td {
    border-bottom: none;
}

.catalog-table tr:hover {
    background-color: var(--surface-subtle);
}

.item-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    font-size: 18px;
    transition: color 0.2s ease;
}

.star-btn:hover,
.star-btn.active {
    color: var(--accent-copper);
}

/* ========================================
   Workflow Timeline & FAQ Accordion
======================================== */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 20px 0;
}

.timeline-step {
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.step-badge {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--accent-gradient);
    color: #1c1c1e;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 22px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: var(--bg-card-hover);
}

.faq-answer {
    display: none;
    padding: 0 22px 18px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ========================================
   QR / Atelier Oudegracht Showroom Pass
======================================== */
.qr-section {
    text-align: center;
    padding: 20px;
}

.qr-code {
    width: 148px;
    height: 148px;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.qr-address {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: monospace;
    word-break: break-word;
    margin-bottom: 14px;
    padding: 10px;
    background-color: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* ========================================
   Responsive Adjustments
======================================== */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }
    .atelier-cards,
    .bottom-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .timeline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .studio-hero,
    .charts-grid,
    .atelier-cards,
    .bottom-row,
    .timeline-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .studio-hero {
        padding: 22px;
    }
    .studio-hero h1 {
        font-size: 26px;
    }
}
