/* ========================================
   Prithvi Quant Labs - Premium UI Styles
   ======================================== */

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(203, 213, 254, 0.7) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(79, 70, 229, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(79, 70, 229, 0.3));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.logo-text .tagline {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 0.125rem;
}

/* Live Ticker Styles */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.2);
}

.ticker {
    display: flex;
    animation: ticker-scroll 40s linear infinite;
    width: max-content;
}

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

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

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 1.25rem;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-symbol {
    color: #e0e7ff;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ticker-price {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
}

.ticker-change {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ticker-change.up {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

.ticker-change.down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.ticker-loading {
    color: #a5b4fc;
    font-size: 0.875rem;
    padding: 0.5rem 2rem;
}

/* Card Container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Premium Card Styles */
.premium-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.08);
    text-decoration: none;
    display: block;
}

.premium-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.5) 100%);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.premium-card h2 {
    font-size: 1.375rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.75rem 0;
    transition: transform 0.3s ease;
}

.premium-card:hover h2 {
    transform: scale(1.02);
}

.premium-card p {
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* Card Icons */
.card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

/* Footer Styles */
.main-footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(203, 213, 254, 0.4) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding: 3rem 2rem;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex: 1;
    min-width: 300px;
}

.footer-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 1rem;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    padding: 0.75rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.15);
}

.footer-about h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f46e5;
    margin: 0 0 0.5rem 0;
}

.footer-about .subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-about p {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0 0 1rem 0;
    max-width: 600px;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    color: #4b5563;
    font-size: 0.8125rem;
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section li::before {
    content: "•";
    color: #7c3aed;
    font-weight: bold;
}

.footer-columns {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .logo-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-columns {
        justify-content: center;
    }
    
    .ticker-item {
        padding: 0.25rem 0.75rem;
    }
    
    .ticker-symbol {
        font-size: 0.6875rem;
    }
    
    .ticker-price {
        font-size: 0.75rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

