/**
 * QQQ Gamma Dashboard Styles - New Design System
 * Modern card-based layout with HSL colors
 */

/* Gamma specific styles that complement main.css */
.gamma-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Status Display */
.status-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.status-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.status-text {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-text.status-positive {
    color: hsl(var(--trust-green));
}

.status-text.status-negative {
    color: hsl(var(--destructive));
}

.status-text.status-neutral {
    color: hsl(var(--warning-amber));
}

.status-text.status-loading {
    color: hsl(var(--muted-foreground));
}

/* Asset Selector */
.asset-selector {
    max-width: 400px;
    margin: 2rem auto ;
}

.asset-selector .input-label {
    display: block;
    margin-bottom: 0.8rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.asset-selector .input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    height: 3rem;
    font-size: 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27currentColor%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3e%3cpolyline points=%276 9 12 15 18 9%27%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.asset-selector .input-field:focus {
    outline: none;
    border-color: hsl(var(--secondary));
    box-shadow: 0 0 0 2px hsl(var(--secondary) / 0.2);
}

.dealer-position {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.update-time {
    font-size: 0.875rem;
    color: hsl(0 0% 100% / 0.7);
    font-weight: 500;
}

/* Gamma Levels Grid */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.level-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)));
}

.level-card.qqq-levels::before {
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)));
}

.level-card.nq-levels::before {
    background: linear-gradient(90deg, hsl(var(--secondary)), hsl(var(--accent)));
}

.level-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 1.5rem;
    text-align: center;
}

.level-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid hsl(var(--border));
}

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

.level-label {
    font-weight: 500;
    color: hsl(var(--foreground));
}

.level-value {
    font-weight: 600;
    font-size: 1.125rem;
}

.level-value.current {
    color: hsl(var(--primary));
}

.level-value.zero {
    color: hsl(var(--warning-amber));
}

.level-value.call {
    color: hsl(var(--destructive));
}

.level-value.put {
    color: hsl(var(--trust-green));
}

.level-distance {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-left: 0.5rem;
}

/* Action Plan */
.action-plan {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border-radius: var(--radius);
    padding: 2rem;
    white-space: pre-line;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.action-plan h3 {
    color: white;
    margin-bottom: 1rem;
}

/* Button Container */
.button-container {
    text-align: center;
    margin-bottom: 2rem;
}

/* Disclaimer */
.disclaimer {
    background: hsl(var(--warning-amber) / 0.1);
    border: 2px solid hsl(var(--warning-amber));
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.disclaimer h3 {
    color: hsl(var(--warning-amber));
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.disclaimer p {
    color: hsl(var(--foreground));
    line-height: 1.6;
    margin: 0;
}

/* Info Section */
.info-section {
    margin-bottom: 2rem;
}

.info-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--primary));
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.info-item {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.info-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.info-item p {
    font-size: 0.9375rem;
    color: hsl(var(--foreground));
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (min-width: 768px) {
    .status-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .levels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
