/**
 * Public Styles for Gamma Options Analyzer
 */

/* Dashboard Container */
.goa-dashboard {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.goa-dashboard-header {
    border-bottom: 3px solid #0073aa;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.goa-ticker-title {
    font-size: 32px;
    margin: 0;
    color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.goa-analysis-date {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

/* Metrics Grid */
.goa-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.goa-metrics-grid.goa-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.goa-metric-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,.07);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.goa-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.goa-metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,.12);
}

.goa-metric-card:hover::before {
    transform: scaleX(1);
}

.goa-metric-card.goa-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.goa-metric-card.goa-highlight::before {
    background: white;
}

.goa-metric-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    opacity: 0.85;
    font-weight: 600;
}

.goa-metric-value {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.2;
}

.goa-metric-card.goa-highlight .goa-metric-value {
    text-shadow: 0 2px 4px rgba(0,0,0,.2);
}

.goa-metric-sub {
    font-size: 13px;
    opacity: 0.8;
}

.goa-green {
    color: #00a32a !important;
}

.goa-red {
    color: #d63638 !important;
}

/* Gamma Regime Section */
.goa-regime-section {
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    background: #f9f9f9;
    border-left: 5px solid;
}

.goa-regime-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.goa-regime-positive {
    background: linear-gradient(135deg, #00a32a 0%, #00d13a 100%);
    color: white;
}

.goa-regime-negative {
    background: linear-gradient(135deg, #d63638 0%, #ff4444 100%);
    color: white;
}

.goa-regime-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Sections */
.goa-section {
    margin-bottom: 40px;
}

.goa-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #1a1a1a;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 10px;
    font-weight: 600;
}

/* Charts Section */
.goa-charts-section {
    margin-top: 40px;
}

.goa-chart-container {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.goa-chart-container h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #1a1a1a;
    border: none;
    padding: 0;
}

.goa-chart {
    min-height: 400px;
}

/* Key Levels */
.goa-levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.goa-levels-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,.08);
}

.goa-levels-card h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #1a1a1a;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.goa-levels-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.goa-levels-list li {
    padding: 12px;
    margin-bottom: 10px;
    background: white;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    transition: all 0.2s ease;
}

.goa-levels-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

/* Widgets for Shortcodes */
.goa-gamma-flip-widget,
.goa-metrics-widget,
.goa-levels-widget {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.goa-widget-header h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #1a1a1a;
}

.goa-flip-value {
    font-size: 36px;
    font-weight: bold;
    color: #667eea;
    text-align: center;
    margin: 20px 0;
}

.goa-flip-current {
    text-align: center;
    font-size: 16px;
    color: #666;
}

.goa-flip-distance {
    font-weight: bold;
    margin-left: 10px;
}

.goa-flip-regime {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
}

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

.goa-metrics-table tr {
    border-bottom: 1px solid #e1e4e8;
}

.goa-metrics-table td {
    padding: 12px;
    font-size: 15px;
}

.goa-metrics-table td:last-child {
    text-align: right;
}

.goa-levels-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.goa-levels-column h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
    color: #1a1a1a;
}

.goa-levels-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.goa-levels-column li {
    padding: 8px;
    margin-bottom: 8px;
    background: #f5f7fa;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
}

/* Error Messages */
.goa-error {
    background: #fce8e8;
    color: #d63638;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #d63638;
}

/* Rating and Risk Section */
.goa-rating-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.goa-rating-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    transition: all 0.3s ease;
}

.goa-rating-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.goa-rating-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.goa-rating-icon {
    font-size: 48px;
    line-height: 1;
}

.goa-rating-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.goa-rating-value {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.goa-rating-score {
    font-size: 14px;
    color: #888;
    font-weight: 600;
}

.goa-rating-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.goa-key-factors-section {
    background: #f9f9f9;
    border-left: 5px solid #0073aa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
}

.goa-key-factors-section h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 20px;
    color: #1a1a1a;
}

.goa-key-factors-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.goa-key-factors-list li {
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid #e1e4e8;
    color: #333;
}

.goa-key-factors-list li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .goa-dashboard {
        padding: 20px;
    }
    
    .goa-ticker-title {
        font-size: 24px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .goa-analysis-date {
        margin-top: 8px;
    }
    
    .goa-metrics-grid,
    .goa-levels-grid,
    .goa-levels-container {
        grid-template-columns: 1fr;
    }
    
    .goa-metric-value {
        font-size: 26px;
    }
    
    .goa-chart {
        min-height: 300px;
    }
}

@media screen and (max-width: 480px) {
    .goa-dashboard {
        padding: 15px;
    }
    
    .goa-ticker-title {
        font-size: 20px;
    }
    
    .goa-metric-card {
        padding: 18px;
    }
    
    .goa-metric-value {
        font-size: 22px;
    }
    
    .goa-regime-badge {
        font-size: 14px;
        padding: 8px 16px;
    }
}
