/* ACME Scripts Template */

/* Tailwind CSS Configuration */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Custom Properties */
:root {
    /* Primary and accent mapped to new palette */
    --primary-50: #F5F5F5; /* Light Gray */
    --primary-100: #EAEAEA; /* derived */
    --primary-200: #DDDDDD; /* derived */
    --primary-300: #CFCFCF; /* derived */
    --primary-400: #BFBFBF; /* derived */
    --primary-500: #00C2A8; /* Vibrant Teal */
    --primary-600: #00AF98; /* slightly darker teal */
    --primary-700: #121212; /* Graphite Black (used as deep primary) */
    --primary-800: #0E0E0E; /* derived */
    --primary-900: #0A0A0A; /* derived */
    /* Secondary scale repurposed for neutrals where needed */
    --secondary-50: #FFFFFF; /* White */
    --secondary-100: #F5F5F5; /* Light Gray */
    --secondary-200: #EAEAEA;
    --secondary-300: #DDDDDD;
    --secondary-400: #CFCFCF;
    --secondary-500: #BFBFBF;
    --secondary-600: #9F9F9F;
    --secondary-700: #7F7F7F;
    --secondary-800: #5F5F5F;
    --secondary-900: #3F3F3F;
    --accent: #FF6F61; /* Bright Coral for CTAs */
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #00C2A8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00AF98;
}

/* Override some Tailwind grays to align neutrals */
.bg-gray-50 { background-color: #F5F5F5 !important; }
.bg-gray-900 { background-color: #121212 !important; }

/* Provide basic helpers for primary-colored text/borders used in markup */
.text-primary-600 { color: #00C2A8 !important; }
.border-primary-500 { border-color: #00C2A8 !important; }
.hover\:text-primary-600:hover { color: #00C2A8 !important; }

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #00C2A8;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Header Styles */
.site-header {
    background: #FFFFFF;
    color: #121212;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    min-height: 4rem;
    height: auto;
}

.site-branding a {
    font-size: 1.5rem;
    font-weight: 800;
    color: #121212;
    text-decoration: none;
}

.site-branding a:hover {
    text-decoration: none;
}

.text-accent {
    color: var(--accent);
}

/* Logo sizing */
.site-logo {
    height: 52px;
    width: auto;
    display: inline-block;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #121212;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--accent);
}

/* Accent background utilities for CTAs */
.bg-accent {
    background-color: var(--accent) !important;
}

.hover\:bg-accent-600:hover {
    background-color: #e65f54 !important; /* slightly darker coral for hover */
}

/* Accent border utility for outline CTAs */
.border-accent {
    border-color: var(--accent) !important;
}

/* Content Styles */
.site-content {
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

/* Ensure sections don't overlap */
section {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    display: block;
    clear: both;
}

/* Additional spacing for better section separation */
section + section {
    margin-top: 0;
}

/* Fix for hero section spacing */
section:first-of-type {
    margin-top: 0;
}

/* Ensure proper section flow */
.site-main {
    position: relative;
    z-index: 1;
}

/* Default section background alternation (light gray / white) */
.site-main section:nth-of-type(odd) {
    background: #FFFFFF;
}
.site-main section:nth-of-type(even) {
    background: #F5F5F5;
}

/* Hero Section */
.hero-gradient-text {
    /* Teal to Coral gradient for key headings */
    background: linear-gradient(45deg, #00C2A8, #FF6F61);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ensure hero section doesn't overlap with header */
section.bg-gradient-to-r:first-of-type {
    position: relative;
    z-index: 1;
}

/* Glass morphism effect */
.glass-morphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Plugin preview styles */
.plugin-preview {
    transform: perspective(1000px) rotateY(-5deg);
}

/* Featured badge positioning */
.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.bg-gradient-to-r {
    background: linear-gradient(to right, var(--tw-gradient-stops));
}

/* Map helper classes to new palette */
.from-primary-500 {
    --tw-gradient-from: #00C2A8; /* Vibrant Teal */
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 194, 168, 0));
}

.to-primary-700 {
    --tw-gradient-to: #121212; /* Graphite Black */
}

.from-accent {
    --tw-gradient-from: #FF6F61; /* Bright Coral */
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 111, 97, 0));
}

/* Ensure CTA gradients using to-yellow-400 become solid Coral without HTML changes */
.to-yellow-400 {
    --tw-gradient-to: #FF6F61; /* Bright Coral */
}

/* Remap pink/red newsletter gradient to Teal -> Coral */
.from-pink-400 {
    --tw-gradient-from: #00C2A8; /* Vibrant Teal */
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 194, 168, 0));
}

.to-red-500 {
    --tw-gradient-to: #FF6F61; /* Bright Coral */
}

/* Unused in markup currently, but keep for safety */
.from-purple-400 {
    --tw-gradient-from: #00C2A8;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 194, 168, 0));
}

.to-pink-500 {
    --tw-gradient-to: #FF6F61;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .plugin-preview {
        transform: none;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-gradient-text {
        font-size: 2.5rem;
    }
}

/* Container utilities */
.max-w-7xl {
    max-width: 80rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Spacing utilities */
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.mt-16 {
    margin-top: 6rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

/* Grid utilities */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

/* Flex utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.text-gray-100 {
    color: #f3f4f6;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-900 {
    color: #111827;
}

.text-primary-600 {
    color: #00C2A8;
}

.text-green-500 {
    color: #10b981;
}

.text-red-500 {
    color: #ef4444;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.font-extrabold {
    font-weight: 800;
}

/* Background utilities */
.bg-white {
    background-color: white;
}

.bg-gray-50 {
    background-color: #F5F5F5;
}

.bg-gray-800 {
    background-color: #1f2937;
}

.bg-gray-900 {
    background-color: #121212;
}

.bg-red-500 {
    background-color: #ef4444;
}

.bg-yellow-500 {
    background-color: #eab308;
}

.bg-green-500 {
    background-color: #10b981;
}

/* Border utilities */
.border-2 {
    border-width: 2px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-gray-700 {
    border-color: #374151;
}

.border-primary-500 {
    border-color: #00C2A8;
}

.border-white {
    border-color: white;
}

.border-t {
    border-top-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

/* Border radius utilities */
.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-2xl {
    border-radius: 1rem;
}

/* Shadow utilities */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Transform utilities */
.transform {
    transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
}

.hover\:-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

.hover\:-translate-y-2:hover {
    transform: translateY(-0.5rem);
}

.scale-105 {
    transform: scale(1.05);
}

/* Transition utilities */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

/* Position utilities */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.top-50\% {
    top: 50%;
}

.left-50\% {
    left: 50%;
}

/* Z-index utilities */
.z-50 {
    z-index: 50;
}

.z-1000 {
    z-index: 1000;
}

/* Overflow utilities */
.overflow-hidden {
    overflow: hidden;
}

/* List utilities */
.list-none {
    list-style-type: none;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-8 > * + * {
    margin-top: 2rem;
}

/* Width utilities */
.w-full {
    width: 100%;
}

.w-3 {
    width: 0.75rem;
}

/* Height utilities */
.h-3 {
    height: 0.75rem;
}

.h-1 {
    height: 0.25rem;
}

/* Min-width utilities */
.min-w-\[60px\] {
    min-width: 60px;
}

/* Opacity utilities */
.opacity-90 {
    opacity: 0.9;
}

/* Responsive utilities */
@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .sm\:flex-row {
        flex-direction: row;
    }
    
    .sm\:text-2xl {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    .md\:text-2xl {
        font-size: 1.5rem;
    }
    
    .md\:text-6xl {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

/* Hover utilities */
.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover\:bg-white:hover {
    background-color: white;
}

.hover\:text-gray-900:hover {
    color: #111827;
}

.hover\:text-primary-600:hover {
    color: #00C2A8;
}

.hover\:bg-primary-500:hover {
    background-color: #00C2A8;
}

.hover\:text-white:hover {
    color: white;
}

.hover\:border-primary-500:hover {
    border-color: #00C2A8;
}

.hover\:no-underline:hover {
    text-decoration: none;
}

/* Focus utilities */
.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:border-primary-500:focus {
    border-color: #00C2A8;
}

/* No-underline utility */
.no-underline {
    text-decoration: none;
}

/* Leading utilities */
.leading-relaxed {
    line-height: 1.625;
}

/* Text size utilities */
.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-3xl {
    font-size: 1.875rem;
}

/* Font weight utilities */
.font-normal {
    font-weight: 400;
}

/* Padding utilities */
.p-4 {
    padding: 1rem;
}

.p-8 {
    padding: 2rem;
}

.pt-8 {
    padding-top: 2rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Margin utilities */
.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

/* Display utilities */
.block {
    display: block;
}

/* Border radius utilities */
.rounded-full {
    border-radius: 9999px;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

/* Text decoration utilities */
.no-underline {
    text-decoration: none;
}

/* Transform utilities */
.hover\:transform:hover {
    transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
}

/* Transition utilities */
.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Additional responsive utilities */
@media (max-width: 640px) {
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
    
    .py-32 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .py-24 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .site-content {
        margin-top: 5rem;
    }
    
    .mt-16 {
        margin-top: 5rem;
    }
}
