.stock-header-container {
    position: relative;
    margin-bottom: 2rem;
    background-color: var(--ga-color-surface);
    width: 100%;
}

.earnings-banner {
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 12px 16px;
    border-radius: var(--ga-radius-lg);
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    position: relative;
    border-left: 4px solid #ff4757;
    animation: slideDown 0.3s ease-out;
}

.earnings-banner.is-hidden {
    display: none;
}

.earnings-banner .close-button {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.earnings-banner .close-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.banner-icon {
    font-size: 24px;
    color: var(--ga-color-surface);
    flex-shrink: 0;
}

.banner-details {
    flex-grow: 1;
}

.banner-details h5 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.banner-countdown {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.banner-date {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.banner-move {
    font-size: 13px;
}

.banner-move strong {
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

.stock-header-main {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.stock-title {
    flex: 1;
    min-width: 300px;
}

.stock-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2C3E50;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.stock-title .symbol {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--ga-color-muted);
    margin-left: 0.5rem;
}

.score-box2 {
    padding: 12px 12px;
    margin-left: 15px;
    min-width: 80px;
    border-radius: var(--ga-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.score-text2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

/* Add a subtle indicator dot */
.score-box2::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e74c3c;
    border: 2px solid white;
}

.score-box2.score-positive::after {
    background-color: #14b8a6;
}

.score-box2.score-neutral::after {
    background-color: #d97706;
}

.score-box2.score-negative::after {
    background-color: var(--ga-color-danger);
}

.score-trend {
    font-size: 0.9em;
    display: inline-block;
    margin-left: 2px;
}
.score-trend.up {
    color: #FFF; /* Green */
}
.score-trend.down {
    color: #FFF; /* Red */
}



.stock-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--ga-color-muted);
}

.meta-item {
    display: inline-flex;
    align-items: center;
}

.meta-label {
    font-weight: 600;
    margin-right: 0.25rem;
}

/* Price display section */
.stock-price-container {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.price-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    padding: 0.25rem 0.75rem;
    border-radius: var(--ga-radius-md);
}

.change-percentage {
    font-size: 2.5rem;
    font-weight: 900;
    margin-top: 0.1rem;
    padding: 0.1rem 0.1rem;
    border-radius: var(--ga-radius-sm);
    text-align: center;
    align-self: flex-end;
}

.stock-change-positive {
    background-color: #e7f7ef;
    color: #138a4d;
}

.stock-change-negative {
    background-color: #fdecec;
    color: #c62828;
}

.stock-change-neutral {
    background-color: #f1f3f5;
    color: var(--ga-color-muted);
}

/* Details section with update info and signals */
.stock-header-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.update-info {
    display: flex;
    flex-wrap: wrap;
    min-width: 200px;
}


.update-badge {
    display: inline-block;
    background-color: var(--ga-color-surface-muted);
    border: 1px solid var(--ga-color-border);
    color: var(--ga-color-muted);
    font-size: 0.85rem;
    margin-top: 10px;
    padding: 0.35rem 0.75rem;
    border-radius: var(--ga-radius-sm);
}

/* Signal items (Buy/Sell) */
.signal-container {
    display: flex;
    gap: 1rem;
}

.signal-item {
    display: flex;
    align-items: stretch;
    border-radius: var(--ga-radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.signal-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.signal-label {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 2px;
    padding: 0.5rem 0.25rem;
    font-weight: 700;
    font-size: 0.75rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buy-signal .signal-label {
    background-color: var(--ga-color-success-legacy);
}

.sell-signal .signal-label {
    background-color: var(--ga-color-danger);
}

.signal-content {
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 90px;
}

.buy-signal .signal-content {
    color: var(--ga-color-success-legacy);
    background-color: rgba(40, 167, 69, 0.05);
}

.sell-signal .signal-content {
    color: var(--ga-color-danger);
    background-color: rgba(220, 53, 69, 0.05);
}

.signal-percentage {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.signal-return {
    font-size: 0.75rem;
    opacity: 0.9;
}

.close-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: #343a40;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--ga-radius-sm);
    z-index: 2;
}

.close-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.score-periods-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: rgba(240, 240, 240, 0.5);
    border-radius: var(--ga-radius-sm);
    position: relative;
}

/* GaG Algo Score Branding */
.score-branding {
    position: absolute;
    bottom: 4px;
    left: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    color: rgba(85, 85, 85, 0.7);
    letter-spacing: 0.3px;
    user-select: none;
    pointer-events: none;
    z-index: 1;
}

.score-branding-main {
    font-weight: 600;
    margin-bottom: 0px;
    line-height: 1;
}

.score-branding-version {
    font-weight: 400;
    font-size: 0.5rem;
    opacity: 0.8;
    line-height: 1;
}

.score-period-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.period-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.period-score-box {
    padding: 5px 8px;
    border-radius: var(--ga-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.period-score-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

/* Score colors based on value */
.score-positive {
    background-color: #14b8a6;
}

.score-neutral {
    background-color: #d97706;
}

.score-negative {
    background-color: var(--ga-color-danger);
}

/* Animations */
@keyframes green {
    from { background-color: white; }
    to { background-color: lightgreen; }
}

@keyframes red {
    from { background-color: white; }
    to { background-color: lightcoral; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 992px) {
    .stock-header-main {
        flex-direction: column;
    }

    .stock-price-container {
        margin-top: 1rem;
        align-self: flex-start;
    }

    .price-display {
        align-items: flex-start;
    }

    .change-percentage {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {

    .score-periods-container {
        justify-content: center;
        margin-top: 15px;
    }

    .stock-price-container {
        display: none;
    }

    .stock-title h1 {
        font-size: 1.2rem;
    }

    .stock-title .symbol {
        font-size: 1rem;
    }

    .score-text2 {
        font-size: 1.75rem;
    }

    .price-value {
        font-size: 0.75rem;
    }

    .stock-meta {
        /*flex-direction: column;*/
        font-size: 0.5rem;
        gap: 0.5rem;
    }

    .stock-header-details {
        flex-direction: column;
        align-items: flex-start;
    }
    .update-info {
        display: none;
    }

    .update-info, .signal-container {
        width: 100%;
    }

    .signal-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        margin-top: 0.75rem;
    }

    .signal-item {
        width: 100%;
    }

    .earnings-banner {
        padding: 10px 12px;
        margin-bottom: 12px;
    }

    .banner-content {
        gap: 8px;
    }

    .banner-icon {
        font-size: 20px;
    }

    .banner-details h5 {
        font-size: 14px;
    }

    .banner-countdown {
        font-size: 13px;
    }

    .banner-date {
        font-size: 11px;
    }

    .banner-move {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .stock-title h1 {
        font-size: 1.25rem;
    }

    .price-value {
        font-size: 1.5rem;
    }

    .update-badge {
        font-size: 0.75rem;
    }
}
