/* ================================================
   HOME PAGE - HYBRID CARD DESIGN
   Best of Demo + UI Kit combined
   ================================================ */

/* Import CSS variables */
@import '../variables.css';

/* ================================================
   HERO SECTION - ULTRA MINIMAL MODERN
   ================================================ */

.hero-ultra-minimal {
    background: linear-gradient(
        135deg,
        var(--gold-50) 0%,
        white 25%,
        var(--neutral-50) 50%,
        white 75%,
        var(--gold-50) 100%
    );
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    padding: 80px 0 60px;
    margin: 0 16px 32px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Animated Gradient Background */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Decorative Blur Shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--gold-200) 0%, var(--gold-300) 100%);
    top: -100px;
    left: -100px;
    animation: float 20s ease-in-out infinite;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--info-light) 0%, var(--info) 100%);
    top: 50%;
    right: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--gold-100) 0%, var(--neutral-200) 100%);
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* Hero Content */
.hero-content-minimal {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

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

/* Gradient Text Title */
.hero-title-minimal {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-600) 0%, var(--gold-700) 50%, var(--neutral-900) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 16px;
}

/* Decorative Underline */
.hero-title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-500) 0%, var(--gold-600) 100%);
    border-radius: 2px;
    margin: 0 auto 24px;
    box-shadow: 0 2px 8px rgba(255, 179, 0, 0.3);
}

/* Description */
.hero-description-minimal {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--neutral-600);
    line-height: 1.6;
    font-weight: 400;
}

/* Content Sections */
.content-sections {
    padding: 40px 0 60px;
    min-height: 400px;
}

/* Symbol Grid */
.symbol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Kripto kategorisi için 3'lü grid */
.category-section-modern[data-category="kripto"] .symbol-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ================================================
   HYBRID PRICE CARD
   ================================================ */

.price-card-hybrid {
    background: white;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.price-card-hybrid:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Live Badge (Top Right) */
.live-badge-hybrid {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 8px;
    background: var(--danger-light);
    color: var(--danger);
    border-radius: 12px;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: pulse 2s infinite;
    letter-spacing: 0.5px;
    z-index: 2;
}

.live-dot-hybrid {
    width: 6px;
    height: 6px;
    background: var(--danger);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

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

/* Favorite Button */
.favorite-btn-hybrid {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--neutral-50);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-400);
    transition: all 0.2s ease;
    z-index: 2;
}

.favorite-btn-hybrid:hover {
    background: var(--gold-50);
    color: var(--gold-600);
    transform: scale(1.1);
}

.favorite-btn-hybrid.active {
    color: var(--gold-600);
    background: var(--gold-50);
}

.favorite-btn-hybrid i {
    font-size: 14px;
}

/* Card Header */
.card-header-hybrid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    padding-right: 45px; /* Space for favorite button */
}

.card-title-hybrid {
    flex: 1;
    min-width: 0;
}

.asset-name-hybrid {
    font-size: 18px;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 4px;
    line-height: 1.2;
}

.asset-ticker-hybrid {
    font-size: 12px;
    font-weight: 600;
    color: var(--neutral-500);
    font-family: var(--font-family-mono);
    letter-spacing: 0.3px;
}

/* Category Badge */
.category-badge-hybrid {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.badge-altin {
    background: var(--gold-100);
    color: var(--gold-800);
}

.badge-doviz {
    background: var(--success-light);
    color: var(--success-dark);
}

.badge-kripto {
    background: var(--warning-light);
    color: var(--warning-dark);
}

.badge-emtia {
    background: var(--info-light);
    color: var(--info-dark);
}

.badge-hisse {
    background: var(--purple-100);
    color: var(--purple-800);
}

/* Price Change Badge */
.price-change-hybrid {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.price-change-hybrid.positive {
    color: var(--success);
    background: var(--success-light);
}

.price-change-hybrid.negative {
    color: var(--danger);
    background: var(--danger-light);
}

.change-icon-hybrid {
    font-size: 16px;
}

/* Main Price */
.main-price-hybrid {
    font-size: 32px;
    font-weight: 800;
    font-family: var(--font-family-mono);
    color: var(--neutral-900);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

/* Sparkline */
.sparkline-hybrid {
    height: 60px;
    margin-bottom: 12px;
    position: relative;
    overflow: visible;
}

.sparkline-hybrid svg {
    overflow: visible;
}

/* Extra margin when no pills follow (for indices) */
.sparkline-hybrid:last-of-type {
    margin-bottom: 16px;
}

/* Price Pills (below sparkline) - Full Width */
.price-pills-hybrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.price-pill-hybrid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.price-pill-hybrid .pill-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.9;
}

.price-pill-hybrid .pill-value {
    font-family: var(--font-family-mono);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.3px;
}

.pill-buy {
    background: var(--success-light);
    color: var(--success-dark);
    border: 1px solid var(--success);
}

.pill-buy:hover {
    background: var(--success);
    color: white;
}

.pill-sell {
    background: var(--danger-light);
    color: var(--danger-dark);
    border: 1px solid var(--danger);
}

.pill-sell:hover {
    background: var(--danger);
    color: white;
}


/* Range Badge (24h Low/High) */
.range-badge-hybrid {
    padding: 12px 0 0 0;
    border-top: 1px solid var(--neutral-200);
}

.range-label-hybrid {
    font-size: 10px;
    font-weight: 700;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.range-bar-hybrid {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-value-hybrid {
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-family-mono);
    color: var(--neutral-600);
    white-space: nowrap;
}

.range-value-hybrid.low {
    color: var(--danger);
}

.range-value-hybrid.high {
    color: var(--success);
}

.range-line-hybrid {
    flex: 1;
    height: 4px;
    background: linear-gradient(90deg, var(--danger-light) 0%, var(--success-light) 100%);
    border-radius: 2px;
    position: relative;
}

.range-indicator-hybrid {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border: 2px solid var(--gold-600);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Category Section Modern */
.category-section-modern {
    margin-bottom: 48px;
}

.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title-modern {
    font-size: 24px;
    font-weight: 800;
    color: var(--neutral-900);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.category-icon-modern {
    font-size: 28px;
}

.view-all-link-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-600);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    padding: 8px 16px;
    border-radius: 10px;
}

.view-all-link-modern:hover {
    color: var(--gold-700);
    background: var(--gold-50);
    gap: 12px;
}

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

@media (max-width: 991px) {
    /* Hero Responsive */
    .hero-ultra-minimal {
        padding: 70px 0 50px;
        margin: 0 12px 28px;
        border-radius: 20px;
    }

    /* Smaller blur shapes on tablet */
    .hero-shape-1 {
        width: 300px;
        height: 300px;
    }

    .hero-shape-2 {
        width: 250px;
        height: 250px;
    }

    .hero-shape-3 {
        width: 280px;
        height: 280px;
    }

    /* Content sections */
    .content-sections {
        padding: 32px 0 48px;
    }

    .symbol-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 16px;
    }

    /* Kripto tablet'te 2'li grid */
    .category-section-modern[data-category="kripto"] .symbol-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title-modern {
        font-size: 20px;
    }

    .main-price-hybrid {
        font-size: 26px;
    }

    .sparkline-hybrid {
        height: 55px;
    }

    .asset-name-hybrid {
        font-size: 16px;
    }

    .price-pills-hybrid {
        gap: 10px;
    }

    .price-pill-hybrid {
        padding: 10px 14px;
    }

    .price-pill-hybrid .pill-value {
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    /* Hero Mobile */
    .hero-ultra-minimal {
        padding: 60px 0 40px;
        margin: 0 8px 24px;
        border-radius: 16px;
    }

    /* Even smaller blur shapes on mobile */
    .hero-shape {
        opacity: 0.2;
        filter: blur(60px);
    }

    .hero-shape-1 {
        width: 200px;
        height: 200px;
    }

    .hero-shape-2 {
        width: 180px;
        height: 180px;
    }

    .hero-shape-3 {
        width: 200px;
        height: 200px;
        bottom: -50px;
    }

    .hero-title-underline {
        width: 60px;
        height: 3px;
        margin-bottom: 20px;
    }

    .hero-description-minimal br {
        display: none;
    }

    /* Content sections */
    .content-sections {
        padding: 24px 0 40px;
    }

    .symbol-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Kripto mobilde de 1'li grid */
    .category-section-modern[data-category="kripto"] .symbol-grid {
        grid-template-columns: 1fr;
    }

    .price-card-hybrid {
        padding: 16px;
    }

    .card-header-hybrid {
        gap: 6px;
        padding-right: 40px;
    }

    .main-price-hybrid {
        font-size: 28px;
    }

    .sparkline-hybrid {
        height: 50px;
    }

    .asset-name-hybrid {
        font-size: 15px;
    }

    .section-header-modern {
        gap: 12px;
    }

    .section-title-modern {
        font-size: 18px;
        flex: 1;
    }

    .category-icon-modern {
        font-size: 22px;
    }

    .view-all-link-modern {
        padding: 6px 12px;
        font-size: 13px;
        gap: 6px;
        white-space: nowrap;
    }

    .view-all-link-modern span {
        display: none;
    }

    .view-all-link-modern::before {
        content: 'Tümü';
        font-size: 13px;
        font-weight: 600;
    }

    .price-pills-hybrid {
        gap: 8px;
    }

    .price-pill-hybrid {
        padding: 10px 12px;
        gap: 5px;
    }

    .price-pill-hybrid .pill-label {
        font-size: 9px;
    }

    .price-pill-hybrid .pill-value {
        font-size: 14px;
    }

    .range-value-hybrid {
        font-size: 10px;
    }
}

/* ================================================
   ANIMATIONS & TRANSITIONS
   ================================================ */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Loading State */
.price-card-hybrid.loading {
    pointer-events: none;
    opacity: 0.6;
}

.price-card-hybrid.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

/* Flash Effect on Price Update */
@keyframes flash-green {
    0%, 100% { background: white; }
    50% { background: rgba(16, 185, 129, 0.1); }
}

@keyframes flash-red {
    0%, 100% { background: white; }
    50% { background: rgba(239, 68, 68, 0.1); }
}

.price-card-hybrid.flash-up {
    animation: flash-green 0.5s ease;
}

.price-card-hybrid.flash-down {
    animation: flash-red 0.5s ease;
}
