/**
 * Meerkat Theme - Additional Styles
 * Hero visuals and component styles
 *
 * @package Meerkat
 */

/* ==========================================================================
   Hero Dashboard Visual (Pure CSS)
   ========================================================================== */

.hero-visual {
    position: relative;
    animation: fadeInRight 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-dashboard {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: var(--meerkat-slate-800);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dashboard-header {
    background: var(--meerkat-slate-700);
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

.dashboard-dots {
    display: flex;
    gap: 8px;
}

.dashboard-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #EF4444; }
.dot-yellow { background: #FBBF24; }
.dot-green { background: #10B981; }

.dashboard-content {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dashboard-card {
    background: var(--meerkat-slate-900);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.stat-card {
    grid-column: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--meerkat-slate-400);
    margin-bottom: 8px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.stat-bar {
    height: 8px;
    background: var(--meerkat-slate-700);
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    width: 70%;
    background: linear-gradient(90deg, var(--meerkat-amber), var(--meerkat-terracotta));
    border-radius: 4px;
    animation: barGrow 1.5s ease forwards;
}

@keyframes barGrow {
    from { width: 0; }
    to { width: 70%; }
}

.progress-card {
    grid-column: 2;
}

.progress-label {
    font-size: 0.75rem;
    color: var(--meerkat-slate-400);
    margin-bottom: 12px;
}

.progress-item {
    margin-bottom: 10px;
}

.progress-bar {
    height: 6px;
    background: var(--meerkat-slate-700);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}

.progress-bar.cyan .progress-fill {
    background: var(--meerkat-electric);
}

.progress-bar.green .progress-fill {
    background: var(--meerkat-success);
}

.chart-card {
    grid-column: 1 / -1;
    min-height: 80px;
    position: relative;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 20px;
    left: 10px;
    right: 10px;
    height: 40px;
    background: linear-gradient(
        to right,
        transparent 0%,
        var(--meerkat-amber) 10%,
        var(--meerkat-terracotta) 30%,
        var(--meerkat-amber) 50%,
        var(--meerkat-terracotta) 70%,
        var(--meerkat-amber) 90%,
        transparent 100%
    );
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40'%3E%3Cpath d='M0,35 Q25,30 50,25 T100,15 T150,20 T200,10' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40'%3E%3Cpath d='M0,35 Q25,30 50,25 T100,15 T150,20 T200,10' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E");
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
    opacity: 0.8;
}

/* Meerkat Mascot */
.meerkat-mascot {
    position: absolute;
    bottom: 0;
    right: 20px;
    width: 80px;
    height: 120px;
    animation: float 4s ease-in-out infinite;
}

.meerkat-body {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 70px;
    background: linear-gradient(180deg, #D4A574 0%, #C4956A 100%);
    border-radius: 25px 25px 20px 20px;
}

.meerkat-head {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 50px;
}

.meerkat-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #E8C9A8 0%, #D4A574 100%);
    border-radius: 50% 50% 45% 45%;
}

.meerkat-ear {
    position: absolute;
    top: -5px;
    width: 14px;
    height: 18px;
    background: #D4A574;
    border-radius: 50% 50% 40% 40%;
}

.meerkat-ear.left { left: 2px; }
.meerkat-ear.right { right: 2px; }

.meerkat-eye {
    position: absolute;
    top: 15px;
    width: 8px;
    height: 10px;
    background: #1E293B;
    border-radius: 50%;
}

.meerkat-eye.left { left: 10px; }
.meerkat-eye.right { right: 10px; }

.meerkat-nose {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 4px;
    background: #1E293B;
    border-radius: 50%;
}

/* ==========================================================================
   Floating Cards
   ========================================================================== */

.floating-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 
        0 10px 40px -10px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

.card-uptime {
    top: 20px;
    right: -20px;
    animation-delay: 0s;
}

.card-speed {
    bottom: 60px;
    left: -30px;
    animation-delay: 2s;
}

.floating-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.floating-icon.orange {
    background: linear-gradient(135deg, var(--meerkat-amber), var(--meerkat-terracotta));
}

.floating-icon.cyan {
    background: linear-gradient(135deg, var(--meerkat-electric), var(--meerkat-electric-dark));
}

.floating-icon svg {
    width: 20px;
    height: 20px;
}

.floating-value {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--meerkat-slate-900);
    line-height: 1.2;
}

.floating-label {
    font-size: 0.75rem;
    color: var(--meerkat-slate-500);
}

/* ==========================================================================
   About Section Visual
   ========================================================================== */

.about-image {
    position: relative;
}

.about-visual {
    background: linear-gradient(135deg, var(--meerkat-slate-800) 0%, var(--meerkat-slate-900) 100%);
    border-radius: var(--radius-2xl);
    padding: 80px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    aspect-ratio: 4/3;
}

.about-team-icon {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 120px;
}

.team-member {
    border-radius: 50% 50% 45% 45%;
}

.team-member.primary {
    width: 60px;
    height: 80px;
    background: linear-gradient(180deg, var(--meerkat-amber) 0%, var(--meerkat-terracotta) 100%);
    z-index: 2;
    position: relative;
}

.team-member.primary::before {
    content: '';
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #FEF3C7;
    border-radius: 50%;
}

.team-member.secondary {
    width: 45px;
    height: 60px;
    background: var(--meerkat-slate-600);
    position: absolute;
    bottom: 0;
}

.team-member.secondary::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--meerkat-slate-500);
    border-radius: 50%;
}

.team-member.secondary.left {
    left: -35px;
}

.team-member.secondary.right {
    right: -35px;
}

.about-stats {
    position: absolute;
    bottom: -40px;
    right: -20px;
    background: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    min-width: 240px;
}

.stat-item {
    text-align: center;
    padding: var(--space-sm);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--meerkat-amber);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==========================================================================
   Testimonial Avatar Colors
   ========================================================================== */

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    color: white;
    flex-shrink: 0;
}

.testimonial-avatar.orange {
    background: linear-gradient(135deg, var(--meerkat-amber), var(--meerkat-terracotta));
}

.testimonial-avatar.cyan {
    background: linear-gradient(135deg, var(--meerkat-electric), var(--meerkat-electric-dark));
}

.testimonial-avatar.green {
    background: linear-gradient(135deg, var(--meerkat-success), #059669);
}

/* ==========================================================================
   CTA Section Buttons
   ========================================================================== */

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--meerkat-slate-600);
    color: white;
}

.btn-outline:hover {
    border-color: var(--meerkat-amber);
    color: var(--meerkat-amber);
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-section {
    background: var(--bg-secondary);
}

/* ==========================================================================
   Dark Mode Adjustments
   ========================================================================== */

[data-theme="dark"] .floating-card {
    background: var(--meerkat-slate-800);
    border: 1px solid var(--meerkat-slate-700);
}

[data-theme="dark"] .floating-value {
    color: white;
}

[data-theme="dark"] .floating-label {
    color: var(--meerkat-slate-400);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-dashboard {
        max-width: 100%;
    }
    
    .floating-card.card-uptime {
        right: 0;
        top: 10px;
    }
    
    .floating-card.card-speed {
        left: 0;
        bottom: 40px;
    }
    
    .meerkat-mascot {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-visual {
        margin-top: var(--space-2xl);
    }
    
    .floating-card {
        position: relative;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: var(--space-md);
    }
    
    .hero-visual {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .stat-card,
    .progress-card,
    .chart-card {
        grid-column: 1;
    }
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ==========================================================================
   Float Animation
   ========================================================================== */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

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

/* ==========================================================================
   Button Ripple Effect
   ========================================================================== */

.btn {
    position: relative;
    overflow: hidden;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==========================================================================
   Scroll Progress Bar
   ========================================================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--meerkat-amber), var(--meerkat-terracotta));
    z-index: 10000;
    transition: width 0.1s ease;
}

/* ==========================================================================
   Header Hide on Scroll
   ========================================================================== */

.site-header.hidden {
    transform: translateY(-100%);
}

/* ==========================================================================
   Carousel Improvements
   ========================================================================== */

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 0 var(--space-md);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-dot.active,
.carousel-dot:hover {
    background: var(--meerkat-amber);
    transform: scale(1.2);
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .hero-visual,
    .floating-card,
    .meerkat-mascot,
    .carousel-dots {
        display: none !important;
    }
}
