@import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');
@import "./nav.css?v=1";
@import "./news.css?v=1";
@import "./products.css?v=1";
@import "./footer.css?v=1";
@import "./cookies.css?v=1";

:root {
/* ========================================
    COLORS - BASE PALETTE
    ======================================== */
--white: #ffffff;
--black: #000000;
--light-bg: #c7c7c7;
--lighter-bg: #e7e7e7;
--dark-bg: #181818;
--darker-bg: #0f0f0f;

/* Text Colors */
--text-primary: #ffffff;
--text-secondary: #cccccc;
--text-muted: #888888;
--text-dark: #1a1a1a;

/* ========================================
    THEME COLORS - CUSTOMIZABLE
    ======================================== */
--theme-primary: rgb(255, 111, 0);
--theme-secondary: rgb(182, 82, 0);
--theme-dark: rgb(97, 31, 0);
--theme-light: rgb(255, 147, 64);
--theme-accent: rgb(255, 203, 160);

/* ========================================
GRADIENTS
======================================== */
--gradient-primary: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
--gradient-light: linear-gradient(135deg, var(--theme-primary), var(--theme-light));
--gradient-dark: linear-gradient(135deg, var(--theme-dark), var(--theme-secondary));
--gradient-background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
--gradient-white: linear-gradient(135deg, var(--white), var(--light-bg));

/* Card Gradients */
--gradient-card: linear-gradient(135deg, #2a2a2a 0%, #0a0a0a 100%);
--gradient-card-hover: linear-gradient(135deg, #3a3a3a 0%, #1a1a1a 100%);
--gradient-card-gloss: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.1) 100%);

/* ========================================
    SHADOWS & EFFECTS
    ======================================== */
--shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.2);
--shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
--shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
--shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.5);

/* Theme Shadows */
--shadow-theme: 0 20px 20px var(--theme-accent);
--shadow-theme-hover: 0 10px 30px var(--theme-dark);
--glow-theme: 0 0 20px var(--theme-dark);

/* Card Shadows */
--shadow-card: 0 20px 60px var(--darker-bg);
--shadow-card-hover: 0 30px 70px var(--dark-bg); 

/* ========================================
    GLOBAL
    ======================================== */
--large-radius: 20px;
--small-radius: 10px;
--nav-height: 80px;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--black);
    overflow-x: hidden;
}

a {
    color: var(--theme-accent);
}

a:hover {
    color: var(--theme-light);
}

/* Layouts */
.layout-section {
    padding: 2rem 2rem;
    background: var(--black);
    position: relative;
    overflow: visible;
    word-wrap: break-word;
}

.section--invert {
    background: var(--gradient-primary) !important;
    color: var(--black);
}

.section--invert .section-title h2 {
    background: var(--black);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section--invert .section-title p {
    color: var(--black);
}

.nav-padding{
    height: var(--nav-height);
}

/* Hero Section */
.hero,
.hero-product,
.hero-help {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-help {
    min-height: calc(10em + var(--nav-height));
}

.hero {
    min-height: 100vh;
}

.hero-product {
    min-height: 50vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(0,0,0,0.2);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(0,0,0,0);stop-opacity:1" /></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23grad1)"/><circle cx="800" cy="300" r="150" fill="url(%23grad1)"/><circle cx="300" cy="800" r="120" fill="url(%23grad1)"/></svg>') no-repeat;
    background-size: cover;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 800;
    font-family: "Righteous", sans-serif;
    font-optical-sizing: auto;
    position: relative;
}

.hero-content p {
    font-size: 1.2rem;
    margin: 1rem 0;
}

.hero-logo {
    width: 150px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    animation: pulse 3s ease-in-out infinite;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-title {
    text-align: center;
}

.section-title h2 {
    font-family: "Righteous", sans-serif;
    font-optical-sizing: auto;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    padding: 1rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    font-size: 1.2rem;
    padding: 1.5rem;
    color: var(--text-secondary);
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    justify-content: center;
    /* place-items: center; */
}

.item-flex {
    display: flex;
    gap: 2rem;
    place-items: center;
}

.link-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    justify-content: center;
    align-items: center;
}

/* Optimized card styles for better performance */

.card {
    border-radius: var(--large-radius);
    /* Removed transition - no need to animate border-radius */
}

.static-card {
    border-radius: var(--large-radius);
}

.card-hidden {
    opacity: 0;
    transform: translateY(20px); /* Reduced from 30px */
    transition: opacity 0.4s ease, transform 0.4s ease; /* Reduced from 0.4s */
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.plugin-card {
    background: var(--gradient-card);
    padding: 0;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--light-bg);
    cursor: default;
    text-align: left;
    color: var(--text-primary);
    
    /* Single transition for better performance */
    transition: box-shadow 0.2s ease;
    transition: border-color 0.2s ease;
    transition: background 0.2s ease;
}

.plugin-card:hover {
    /* Only animate box-shadow - most performant */
    box-shadow: var(--shadow-card-hover);
    /* Use instant color changes instead of transitions */
    border-color: var(--gradient-card-hover);
    background: var(--gradient-card-hover);
}

.plugin-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    
    /* Remove all transforms and will-change for better performance */
}

.plugin-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Alternative: If you want some hover effect, use opacity instead of transform */
.plugin-card:hover .plugin-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

/* Media query for reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .card-hidden,
    .card.visible,
    .plugin-card {
        transition: none;
    }
    
    .card-hidden {
        transform: none;
    }
}

.generic-item {
    background: var(--dark-bg);
    border-radius: var(--large-radius);
    padding: 0;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--lighter-bg);
    cursor: default;
    display: flex;
}

.generic-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--theme-dark) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.generic-content {
    flex: 1;
    padding: 2rem;
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
}

.plugin-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.plugin-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    position: relative;
}

.plugin-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.plugin-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.plugin-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--small-radius);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.plugin-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.plugin-link:hover::before {
    left: 100%;
}

.plugin-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--orange-shadow);
}

.plugin-link.secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.plugin-link.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

/* Bundle Cards - Updated for glossy black */
.plugin-card.bundle {
    background: var(--gradient-card);
    border: 2px solid var(--theme-primary);
    box-shadow: var(--shadow-card);
    position: relative;
}

.plugin-card.bundle::before {
    background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,1), rgba(255,255,255,0.6));
    height: 6px;
}

.plugin-card.bundle .plugin-image {
    background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 50%, #1a1a1a 100%);
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Plugin tags styling */
.plugin-tags {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.plugin-tags .tag {
    font-size: 12px;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 5px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Optional: Make tags slightly transparent on hover for better UX */
.plugin-tags .tag:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.bundle-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-card);
    color: var(--white);
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--large-radius);
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 3;
    animation: glow 2s ease-in-out infinite alternate;
}

.free-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-white);
    color: var(--black);
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--large-radius);
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 3;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 4px 15px #fff; }
    to { box-shadow: 0 4px 25px #ccc; }
}


.new-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ffffff, #e7e7e7);
    color: black;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--large-radius);
    font-weight: bold;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    z-index: 3;
    animation: newPulse 2s ease-in-out infinite alternate;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.new-badge::before {
    content: "💥";
    margin-right: 0.3rem;
}

@keyframes newPulse {
    from { 
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        transform: scale(1);
    }
    to { 
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
        transform: scale(1.05);
    }
}

.plugin-links.bundle-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Featured Plugin - Updated for glossy black */
.featured {
    grid-column: span 2;
}

.featured .plugin-image {
    font-weight: 600;
    font-size: 1.2rem;
}

.section-footer {
    text-align: center;
    padding: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--large-radius);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--white);
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    box-shadow: var(--shadow-card-hover);
    background: var(--gradient-card);
}

.cta-button.inBasket {
    background: var(--gradient-primary);
    color: var(--black);
    text-shadow: 0 0 20px rgba(255,255,255,1);
    border-color: var(--black);
    font-weight: bold;
}

.cta-button.inBasket:hover {
    color: var(--black);
    text-shadow: 0 0 20px rgba(255,255,255,1);
    border-color: var(--black);
}

.cta-button svg {
    width: 16px;
    height: 16px;
}

.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #555;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    animation: spinner 0.6s linear infinite;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
  }
  
  @keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

/* Responsive Design */
@media (max-width: 768px) {

    .hero p {
        font-size: 1.1rem;
    }

    .plugins-grid {
        grid-template-columns: 1fr;
    }

    .featured {
        grid-column: span 1;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .plugin-links {
        flex-direction: column;
    }

    .plugin-links.bundle-links {
        grid-template-columns: 1fr;
    }

    .cta-button {
        width: 100%;
    }

    .layout-section {
        padding: 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem;
    }

    .plugins-section {
        padding: 4rem 1rem;
    }

    .plugin-content {
        padding: 1.5rem;
    }

    .plugin-links.bundle-links {
        grid-template-columns: 1fr;
    }
}