/**
 * Today in Pakistan - Economic Dashboard Styles
 * Auction Haul PK
 */

/* =====================================================
   HERO BANNER
   ===================================================== */
.tip-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #312e81 100%);
    padding: 3rem 0 2rem;
    margin-top: -20px;
    position: relative;
    overflow: hidden;
}

.tip-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
}

.tip-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 5s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.tip-hero-content {
    position: relative;
    z-index: 2;
}

.tip-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tip-hero h1 .text-gradient {
    background: linear-gradient(135deg, #818cf8, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tip-hero .hero-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    margin-bottom: 0;
}

.tip-hero .live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tip-hero .live-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.tip-last-updated {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* =====================================================
   TICKER BAR
   ===================================================== */
.tip-ticker-bar {
    background: #0f172a;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    overflow: hidden;
    padding: 0.6rem 0;
    position: relative;
}

.tip-ticker-track {
    display: flex;
    gap: 3rem;
    animation: ticker-scroll 40s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.tip-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.tip-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 500;
}

.tip-ticker-item .label {
    color: rgba(255,255,255,0.5);
}

.tip-ticker-item .value {
    font-weight: 700;
    color: #fff;
}

.tip-ticker-item .change {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.tip-ticker-item .change.up {
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
}

.tip-ticker-item .change.down {
    color: #fb7185;
    background: rgba(251, 113, 133, 0.1);
}

.tip-ticker-item .divider {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.15);
}

/* =====================================================
   RATE CARDS
   ===================================================== */
.tip-section {
    padding: 2.5rem 0;
}

.tip-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tip-section-title .icon-box {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}

.tip-rate-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.tip-rate-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.tip-rate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 4px 4px 0 0;
}

.tip-rate-card.card-usd::before { background: linear-gradient(135deg, #10b981, #059669); }
.tip-rate-card.card-gold::before { background: linear-gradient(135deg, #f59e0b, #d97706); }
.tip-rate-card.card-silver::before { background: linear-gradient(135deg, #94a3b8, #64748b); }
.tip-rate-card.card-petrol::before { background: linear-gradient(135deg, #ef4444, #dc2626); }
.tip-rate-card.card-inflation::before { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.tip-rate-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.tip-rate-card.card-usd .card-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.tip-rate-card.card-gold .card-icon { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.tip-rate-card.card-silver .card-icon { background: rgba(148, 163, 184, 0.1); color: #64748b; }
.tip-rate-card.card-petrol .card-icon { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.tip-rate-card.card-inflation .card-icon { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.tip-rate-card .card-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.tip-rate-card .card-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    font-family: var(--font-heading);
    line-height: 1.2;
}

.tip-rate-card .card-sub {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.tip-rate-card .card-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    margin-top: 0.5rem;
}

.tip-rate-card .card-change.up {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
}

.tip-rate-card .card-change.down {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
}

.tip-rate-card .intl-local {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.tip-rate-card .intl-local .rate-col {
    flex: 1;
}

.tip-rate-card .intl-local .rate-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.tip-rate-card .intl-local .rate-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
}

/* Loading Skeleton */
.tip-skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.tip-skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.tip-skeleton-title {
    height: 2rem;
    width: 60%;
    margin-bottom: 0.75rem;
}

/* =====================================================
   COMPARISON TABLE
   ===================================================== */
.tip-comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.tip-comparison-table thead th {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 1rem 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: none;
}

.tip-comparison-table tbody td {
    padding: 0.9rem 1.25rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.tip-comparison-table tbody tr:hover {
    background: var(--gray-100);
}

.tip-comparison-table .commodity-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--gray-800);
}

.tip-comparison-table .commodity-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* =====================================================
   TRENDS & NEWS SECTION
   ===================================================== */
.tip-trends-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.tip-trends-card .card-header-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.tip-trends-card .card-header-custom h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-trend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--gray-50);
    transition: all 0.2s ease;
}

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

.tip-trend-item:hover {
    padding-left: 0.5rem;
}

.tip-trend-item .rank {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tip-trend-item .trend-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    flex: 1;
}

.tip-trend-item .trend-volume {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 500;
}

.tip-news-item {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s ease;
}

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

.tip-news-item:hover {
    padding-left: 0.5rem;
}

.tip-news-item a {
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.tip-news-item a:hover {
    color: var(--primary-color);
}

.tip-news-item .news-meta {
    font-size: 0.75rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =====================================================
   AI ANALYSIS SECTION
   ===================================================== */
.tip-analysis-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #312e81 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.tip-analysis-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20h-1v-1h1v1zm0-20h-1v1h1V0zM0 20h1v-1H0v1zm40 0h-1v-1h1v1z'/%3E%3C/g%3E%3C/svg%3E");
}

.tip-analysis-content {
    position: relative;
    z-index: 2;
}

.tip-analysis-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tip-analysis-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.tip-analysis-header p {
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
}

.tip-analysis-header .ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tip-insight-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.tip-insight-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.3);
}

.tip-insight-card .insight-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.tip-insight-card .insight-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.tip-insight-card .insight-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 0;
}

.tip-insight-card .insight-prediction {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
    font-weight: 600;
}

.tip-insight-card .insight-prediction.bullish { color: #34d399; }
.tip-insight-card .insight-prediction.bearish { color: #fb7185; }
.tip-insight-card .insight-prediction.neutral { color: #fbbf24; }

/* Economy Score Gauge */
.tip-economy-gauge {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
}

.gauge-wrapper {
    position: relative;
    width: 200px;
    height: 120px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.gauge-bg {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 20px solid rgba(255,255,255,0.08);
    position: absolute;
    top: 0;
    left: 0;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.gauge-fill {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 20px solid transparent;
    position: absolute;
    top: 0;
    left: 0;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    border-top-color: #10b981;
    border-right-color: #f59e0b;
    transform: rotate(var(--gauge-rotation, -90deg));
    transition: transform 1.5s ease-out;
}

.gauge-score {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-heading);
}

.gauge-score span {
    font-size: 1rem;
    color: rgba(255,255,255,0.4);
}

.gauge-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Prediction Timeline */
.tip-prediction-timeline {
    position: relative;
    padding-left: 2rem;
}

.tip-prediction-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 7px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(99, 102, 241, 0.5), rgba(99, 102, 241, 0.1));
}

.tip-prediction-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.tip-prediction-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.35rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    background: #0f172a;
    z-index: 1;
}

.tip-prediction-item .period {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.tip-prediction-item .prediction-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}

/* =====================================================
   INVESTMENT SECTORS
   ===================================================== */
.tip-sector-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    transition: all 0.3s ease;
    cursor: default;
}

.tip-sector-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

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

.tip-sector-card .sector-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.tip-sector-card .sector-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.tip-sector-card .sector-rating {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

.tip-sector-card .sector-rating.strong-buy {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.tip-sector-card .sector-rating.buy {
    background: rgba(52, 211, 153, 0.15);
    color: #6ee7b7;
}

.tip-sector-card .sector-rating.hold {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.tip-sector-card .sector-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
    margin: 0;
}

/* =====================================================
   DISCLAIMER
   ===================================================== */
.tip-disclaimer {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-top: 2rem;
}

.tip-disclaimer p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
    line-height: 1.5;
}

.tip-disclaimer i {
    color: #f59e0b;
    margin-right: 0.5rem;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991.98px) {
    .tip-hero h1 {
        font-size: 1.75rem;
    }
    
    .tip-rate-card .card-value {
        font-size: 1.4rem;
    }
    
    .tip-analysis-header h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 767.98px) {
    .tip-hero {
        padding: 2rem 0 1.5rem;
    }
    
    .tip-hero h1 {
        font-size: 1.5rem;
    }
    
    .tip-section {
        padding: 1.5rem 0;
    }
    
    .tip-section-title {
        font-size: 1.25rem;
    }
    
    .tip-rate-card {
        padding: 1.25rem;
    }
    
    .tip-rate-card .card-value {
        font-size: 1.25rem;
    }
    
    .tip-analysis-section {
        padding: 2rem 0;
    }
    
    .tip-comparison-table {
        font-size: 0.8rem;
    }
    
    .tip-comparison-table thead th,
    .tip-comparison-table tbody td {
        padding: 0.6rem 0.75rem;
    }
}

/* =====================================================
   ERROR & EMPTY STATES
   ===================================================== */
.tip-error-state {
    text-align: center;
    padding: 2rem;
    color: var(--gray-400);
}

.tip-error-state i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--gray-300);
}

.tip-error-state p {
    font-size: 0.85rem;
    margin: 0;
}

/* =====================================================
   SCROLLBAR STYLING
   ===================================================== */
.tip-trends-card .trends-list,
.tip-trends-card .news-list {
    max-height: 450px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-200) transparent;
}

.tip-trends-card .trends-list::-webkit-scrollbar,
.tip-trends-card .news-list::-webkit-scrollbar {
    width: 4px;
}

.tip-trends-card .trends-list::-webkit-scrollbar-thumb,
.tip-trends-card .news-list::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: 4px;
}

/* Share CTA */
.tip-share-cta {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.tip-share-cta h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tip-share-cta p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tip-share-cta .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.3s ease;
}

.tip-share-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
