/*
  Premium Influencer Marketing Page Styles
  Extends Ecos Media variables and layout
*/

:root {
    --primary-color: #e50000;
    --primary-light: #ff4d4d;
    --primary-dark: #b30000;
    --secondary-color: #1a1a1a;
    --bg-color: #fafafa;
    --text-color: #333;
    --text-light: #666;
    
    /* Premium Additions */
    --gradient-brand: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --card-radius: 16px;
    --premium-font: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    font-family: var(--premium-font);
    overflow-x: hidden;
}

/* Enhancing Typography */
h1, h2, h3, h4, h5 {
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-brand);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: none;
    box-shadow: 0 4px 15px rgba(229, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 0, 0, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--secondary-color);
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: 2px solid #eaeaea;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--text-light);
    background: #f5f5f5;
}

.small-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.large-btn {
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
}

.text-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.text-link:hover {
    gap: 0.8rem;
}

/* Glassmorphism Navbar */
.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0;
    background: transparent;
    color: inherit;
    text-align: left;
    overflow: hidden;
}

.blob-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(229,0,0,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: floatBlob 10s infinite alternate;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 50px) scale(1.1); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    background: rgba(229, 0, 0, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Hero Network Visual */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--glass-shadow);
    padding: 1.5rem;
    position: relative;
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.pulse-network {
    height: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.node {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 2;
}

.node img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.node.center {
    width: 80px;
    height: 80px;
    background: var(--gradient-brand);
    color: white;
    font-size: 1.2rem;
    z-index: 3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(229,0,0,0.4); }
    70% { box-shadow: 0 0 0 20px rgba(229,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(229,0,0,0); }
}

.node.n1 { top: 10%; left: 20%; animation: float 4s infinite ease-in-out; }
.node.n2 { top: 20%; right: 10%; animation: float 3.5s infinite ease-in-out reverse; }
.node.n3 { bottom: 15%; left: 30%; animation: float 5s infinite ease-in-out; }
.node.n4 { bottom: 25%; right: 20%; animation: float 4.5s infinite ease-in-out reverse; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Lines connecting nodes - simplified via before/after */
.pulse-network::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(229,0,0,0.2), transparent);
    left: 50%;
    transform: rotate(45deg);
}
.pulse-network::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(229,0,0,0.2), transparent);
    left: 50%;
    transform: rotate(-45deg);
}


/* Feature Sections */
.feature-section {
    padding: 6rem 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-section.hidden {
    opacity: 0;
    transform: translateY(40px);
}

.feature-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.icon-wrap {
    width: 50px;
    height: 50px;
    background: rgba(229,0,0,0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.icon-wrap svg {
    width: 24px;
    height: 24px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    background: rgba(229,0,0,0.1);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

/* Visual Components (Mini dashboards, mockups) */
.glass-panel {
    background: white;
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.search-bar {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.creator-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: white;
    transition: transform 0.2s ease;
}

.creator-item:hover {
    transform: translateX(10px);
    border-color: rgba(229,0,0,0.3);
}

.creator-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.creator-item h4 {
    margin: 0;
    font-size: 1rem;
}

.creator-item span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.btn-micro {
    margin-left: auto;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Kanban */
.dark-section {
    background: var(--secondary-color);
    color: white;
}

.dark-section h2, .dark-section .feature-list li {
    color: white;
}

.dark-section p {
    color: #ccc;
}

.kanban-panel {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    background: rgba(255,255,255,0.05); /* slightly different glass in dark mode */
    border-color: rgba(255,255,255,0.1);
    color: var(--secondary-color); /* The inner panel keeps light theme feel for cards */
}

.kanban-col h5 {
    color: white;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.k-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.k-card.transit { border-left: 4px solid #ffbd2e; }
.k-card.check { border-left: 4px solid #27c93f; }

/* Masonry Grid */
.masonry-grid {
    position: relative;
    height: 400px;
    width: 100%;
}

.m-item {
    position: absolute;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.m-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.m1 { width: 45%; height: 50%; top: 0; left: 0; background-image: url('https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60'); }
.m2 { width: 45%; height: 40%; top: 55%; left: 0; background-image: url('https://images.unsplash.com/photo-1621335829175-95f437384d7c?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60'); }
.m3 { width: 45%; height: 60%; top: 10%; right: 0; background-image: url('https://images.unsplash.com/photo-1483985988355-763728e1935b?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60'); }
.m4 { width: 35%; height: 25%; bottom: -5%; right: 10%; background-image: url('https://images.unsplash.com/photo-1522337660859-02fbefca4702?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60'); z-index: 5; }

.m-overlay-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(229,0,0,0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    cursor: pointer;
    box-shadow: 0 0 0 10px rgba(229,0,0,0.2);
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}


/* Stats */
.bg-gradient {
    background: linear-gradient(to bottom, #fff, #fef2f2);
}

.text-center { text-align: center; }
.max-w-800 { max-width: 800px; margin: 0 auto; }

.stats-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--card-radius);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    min-width: 250px;
    flex: 1;
    border: 1px solid #f0f0f0;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.text-green { color: #27c93f; }
.currency { font-size: 1rem; color: var(--text-light); }

.stat-chart {
    height: 8px;
    background: #eaeaea;
    border-radius: 4px;
    overflow: hidden;
}

.stat-chart .bar {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: 4px;
}

/* Affiliate Gen */
.code-gen .input-group {
    margin-bottom: 1rem;
}

.code-gen label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.fake-input {
    background: #fdfdfd;
    border: 1px solid #ddd;
    padding: 0.8rem;
    border-radius: 8px;
    color: var(--secondary-color);
    font-weight: 500;
}

.output-code {
    background: #f0fdf4;
    border: 1px dashed #27c93f;
    color: #166534;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: monospace;
    font-size: 1.1rem;
}

.copy-btn {
    background: white;
    border: 1px solid #27c93f;
    color: #166534;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.copy-btn:hover { background: #27c93f; color: white; }
.copy-btn.success { background: #166534; color: white; border-color: #166534;}

/* CTA Final */
.final-cta {
    background: var(--gradient-brand);
    color: white;
    padding: 6rem 0;
}

.final-cta h2 { color: white; }
.final-cta p { color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 2rem; }
.final-cta .btn-primary { 
    background: white; 
    color: var(--primary-color); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}

/* Footer */
.site-footer {
    background: var(--secondary-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #999;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-links h4 {
    color: white;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: #999;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Animations Helpers */
.float-anim { animation: float 6s infinite ease-in-out; }
.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }

/* Responsive */
@media (max-width: 900px) {
    .hero-container, .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-text { text-align: center; }
    .hero-buttons { justify-content: center; }
    
    .right-align .feature-grid {
        /* Swap order for mobile */
        display: flex;
        flex-direction: column-reverse; /* Usually visual top, content bottom on mobile */
    }
    
    .masonry-grid {
        margin-top: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
:root {
    --primary-color: #e50000; /* Red Ecos Media style */
    --secondary-color: #1a1a1a;
    --bg-color: #fafafa;
    --text-color: #333;
    --text-light: #666;
    --card-bg: #fff;
    --border-color: #e0e0e0;
    --radius: 8px;
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Cart Icon */
.cart-icon {
    position: relative;
    cursor: pointer;
    color: var(--secondary-color);
    transition: var(--transition);
}

.cart-icon:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero */
.hero {
    background: var(--secondary-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content & Tabs */
main {
    padding: 3rem 0;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--secondary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

/* Products Grid */
.products-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.products-grid.active-tab {
    display: grid;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #eee; /* Placeholder bg */
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 40px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.add-btn {
    width: 100%;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-btn:hover {
    background: var(--primary-color);
}

/* Cart Sidebar (Glassmorphism) */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.close-btn:hover {
    color: var(--primary-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.item-price {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0.25rem;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    text-decoration: underline;
}

.cart-footer {
    padding: 1.5rem;
    background: #fcfcfc;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius);
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    background: #cc0000;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}
