/**
 * Stock Ticker Styles
 * Matches screenshot design exactly
 */

/* ==========================================
   STOCK TICKER CONTAINER
   ========================================== */

.stock-ticker-container {
    padding: 16px 0;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.stock-ticker-inner {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
}

/* ==========================================
   STOCK BLOCK (Heading + Item)
   ========================================== */

.stock-block {
    display: flex;
    flex-direction: column;
    gap: 0px;
    width: 80%;
}

/* Stock Heading (NSE / BSE) */
.stock-heading {
    margin: 0;
    padding: 0;
    font-size: 1.15vw;
    font-weight: 400;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3.126px;
    line-height: 121.4%;
}

/* ==========================================
   STOCK ITEM
   ========================================== */

.stock-item {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

/* Stock Label (NSE: QUESS / BSE: 539978) */
.stock-label {
    font-size: 0.8vw;
    font-weight: 400;
    color: #C6C5C6;
    letter-spacing: 0.5px;
    min-width: 80px;
    line-height: 111.11%;
}

/* Stock Price (234.98) */
.stock-price {
    font-size: 2.5vw;
    font-weight: 600;
    color: #ffffff;
    line-height: 112.5%;
    letter-spacing: -0.5px;
}

/* Stock Change (+23.42 (+1.8%)) */
.stock-change {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8vw;
    font-weight: 600;
    line-height: 1;
}

/* Up Trend (Green) */
.stock-change.up {
    color: #00ff00;
}

/* Down Trend (Red) */
.stock-change.down {
    color: #ff3333;
}

/* Trend Icon */
.trend-icon {
    font-size: 12px;
    display: inline-block;
}

/* ==========================================
   SEPARATOR LINE
   ========================================== */

.stock-separator {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   LAST UPDATED TIMESTAMP
   ========================================== */

.stock-last-updated {
   margin-top: 4%;
    font-size: 1vw;
    color: #C6C5C6;
    letter-spacing: -0.56px;
    line-height: 24px;
}

#last-update-time {
    color: #aaa;
    font-weight: 500;
}

/* ==========================================
   UPDATE ANIMATION
   ========================================== */

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

.stock-ticker-container.updating {
    animation: pulse 0.5s ease-in-out;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .stock-ticker-inner {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
    
    .stock-separator {
        width: 100%;
        height: 1px;
    }
    
    .stock-item {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .stock-price {
        font-size: 12vw;
    }
	.stock-heading { 
    font-size: 4vw;
   }
	.stock-label {
    font-size: 3.8vw;
	}
	.stock-change {
		font-size: 3.8vw;
	}
	.stock-separator{
		display: none;
	}
	.stock-last-updated {
		font-size: 4vw;
	}
	.stock-block {
		width: 100%;
	}
}

/* ==========================================
   WIDGET AREA ADJUSTMENTS
   ========================================== */

.widget .stock-ticker-container {
    margin: 0 -15px;
}

/* ==========================================
   DARK MODE COMPATIBILITY
   ========================================== */
