/* ==========================================
   Australia FCAS - Theme Override
   ========================================== */

:root {
    /* Australian theme colors - Green and Gold */
    --primary: #00843D;
    --primary-light: #00A651;
    --primary-dark: #006B32;
    --accent: #FFCD00;
    --accent-light: #FFE066;

    /* FCAS specific colors */
    --raise-color: #4CAF50;
    --raise-light: #81C784;
    --lower-color: #2196F3;
    --lower-light: #64B5F6;

    /* Product colors */
    --vf-raise: #00E676;
    --vf-lower: #00B0FF;
    --fast-raise: #4CAF50;
    --fast-lower: #2196F3;
    --slow-raise: #8BC34A;
    --slow-lower: #03A9F4;
    --delayed-raise: #CDDC39;
    --delayed-lower: #00BCD4;
}

/* Logo styling */
.logo svg {
    color: var(--accent);
}

.logo span {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header accent */
.header {
    border-bottom: 2px solid var(--primary);
}

/* Product tabs */
.product-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.product-tab {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-tab:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.product-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.product-tab.raise-tab.active {
    background: var(--raise-color);
    border-color: var(--raise-color);
}

.product-tab.lower-tab.active {
    background: var(--lower-color);
    border-color: var(--lower-color);
}

.product-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.product-dot.raise {
    background: var(--raise-color);
}

.product-dot.lower {
    background: var(--lower-color);
}

/* FCAS 8-product grid */
.fcas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1200px) {
    .fcas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .fcas-grid {
        grid-template-columns: 1fr;
    }
}

/* Product card styling */
.product-card {
    min-height: 120px;
}

.product-card .card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    color: white;
}

/* Product badge colors */
.product-badge.vf_raise { background: var(--vf-raise); }
.product-badge.vf_lower { background: var(--vf-lower); }
.product-badge.fast_raise { background: var(--fast-raise); }
.product-badge.fast_lower { background: var(--fast-lower); }
.product-badge.slow_raise { background: var(--slow-raise); }
.product-badge.slow_lower { background: var(--slow-lower); }
.product-badge.delayed_raise { background: var(--delayed-raise); color: #333; }
.product-badge.delayed_lower { background: var(--delayed-lower); }

/* Raise/Lower card borders */
.product-card.raise {
    border-left: 3px solid var(--raise-color);
}

.product-card.lower {
    border-left: 3px solid var(--lower-color);
}

.price-info {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.card-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.card-unit {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.response-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Chart legend for 8 products */
.fcas-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.legend-color.vf_raise { background: var(--vf-raise); }
.legend-color.vf_lower { background: var(--vf-lower); }
.legend-color.fast_raise { background: var(--fast-raise); }
.legend-color.fast_lower { background: var(--fast-lower); }
.legend-color.slow_raise { background: var(--slow-raise); }
.legend-color.slow_lower { background: var(--slow-lower); }
.legend-color.delayed_raise { background: var(--delayed-raise); }
.legend-color.delayed_lower { background: var(--delayed-lower); }

/* Revenue simulator */
.simulator-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.simulator-card h3 svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--primary-light);
}

.alerts-card h3,
.explanation-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.alerts-card h3 svg,
.explanation-card h3 svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary-light);
}

.simulator-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    align-items: end;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-with-unit input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 1rem;
}

.input-with-unit input:focus {
    border-color: var(--primary);
    outline: none;
}

.input-with-unit .unit {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 40px;
}

.simulator-results {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.result-placeholder {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.result-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 8px;
}

.result-item .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.result-item .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-light);
}

/* Market status */
.market-status-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    color: var(--text-secondary);
}

.status-value {
    font-weight: 600;
}

/* Table styling */
.product-table .trend-up {
    color: var(--raise-color);
}

.product-table .trend-down {
    color: var(--lower-color);
}

.product-table .trend-flat {
    color: var(--text-secondary);
}

.suitability {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.suitability.high {
    background: rgba(0, 166, 81, 0.2);
    color: var(--primary-light);
}

.suitability.medium {
    background: rgba(255, 205, 0, 0.2);
    color: var(--accent);
}

.suitability.low {
    background: rgba(255, 87, 34, 0.2);
    color: #FF8A65;
}

/* Notice card */
.notice-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.notice-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 205, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.notice-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.notice-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Alerts section grid */
.alerts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .alerts-section {
        grid-template-columns: 1fr;
    }
}

/* Button styling */
.btn-primary {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

/* Footer */
.footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-light);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .product-tabs {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .product-tab {
        white-space: nowrap;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}
