/*
Theme Name: Theme WillyShortLink
Theme URI: #
Author: Wily Developer
Author URI: #
Description: Landing page visual premium y moderna para sitio de acortador y monetización de enlaces.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wilylink
*/

/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    --bg-dark: #07070b;
    --bg-surface: rgba(22, 22, 28, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #9ea0b8;
    --accent-primary: #7b2cbf;
    --accent-secondary: #00f5ff;
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --btn-gradient: linear-gradient(135deg, #7b2cbf 0%, #3a0ca3 100%);
    --text-gradient: linear-gradient(135deg, #00f5ff 0%, #7b2cbf 100%);
}

html.light-mode {
    --bg-dark: #f0f2f9; /* Soft tech blue/purple white */
    --bg-surface: rgba(255, 255, 255, 0.95);
    --text-primary: #1e1b4b; /* Deep Indigo text for great contrast */
    --text-secondary: #4f46e5; /* Indigo */
    --accent-primary: #6d28d9; /* Shifted purple */
    --accent-secondary: #0284c7; /* Darker Cyan for legibility */
    --glass-border: rgba(109, 40, 217, 0.15); /* Purple tinted borders */
    --glass-shadow: 0 8px 32px 0 rgba(109, 40, 217, 0.08); /* Soft purple tint */
}

/* Forms & Text inside light mode */
html.light-mode .shortener-box input {
    color: var(--text-primary) !important;
}
html.light-mode .shortener-box input::placeholder {
    color: rgba(30, 27, 75, 0.5) !important;
}
html.light-mode #wilylink-result-container a {
    color: var(--text-primary) !important;
}

/* Remove hardcoded text shadows and force primary text color */
html.light-mode .stat .counter, 
html.light-mode .mockup-info span, 
html.light-mode h1, 
html.light-mode h2, 
html.light-mode h3 {
    text-shadow: none !important;
    color: var(--text-primary) !important;
}

/* Subtitles, paragraphs and minor text */
html.light-mode p, 
html.light-mode .stat span, 
html.light-mode .mockup-info {
    color: var(--text-secondary) !important;
}

/* Mockup Card specific overrides for Light Mode */
html.light-mode .mockup-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(109, 40, 217, 0.2) !important;
    box-shadow: 0 20px 40px rgba(109, 40, 217, 0.1) !important;
}
/* Reduce the intense purple inline backlight behind the card in light mode */
html.light-mode .mockup-card > div:first-child {
    opacity: 0.05 !important;
}

/* Charts Backgrounds */
html.light-mode .chart {
    background: rgba(109, 40, 217, 0.05) !important;
    border: 1px solid rgba(109, 40, 217, 0.1) !important;
}
html.light-mode .chart .bar {
    background: rgba(109, 40, 217, 0.08) !important;
}
/* Make the non-animated chart fills highly visible in Light Mode */
html.light-mode .chart .bar .fill:not([style*="var(--text-gradient)"]) {
    background: rgba(109, 40, 217, 0.6) !important;
}

/* Floating Badges */
html.light-mode .floating-badge-2 {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 15px 35px rgba(109, 40, 217, 0.15) !important;
    color: var(--text-primary) !important;
}
html.light-mode .floating-badge-2 > div:last-child > div:last-child {
    color: var(--text-secondary) !important;
}

/* Header UI Elements */
html.light-mode #theme-toggle {
    color: var(--text-primary) !important;
}
html.light-mode .auth-buttons a:not(.btn-primary) {
    color: var(--text-primary) !important;
}
html.light-mode .btn-primary {
    color: #ffffff !important;
}

/* Feature Cards & Steps Cards Background Overrides */
html.light-mode .features > div > div > div, 
html.light-mode #how-it-works > div > div > div, 
html.light-mode #reviews > div > div > div {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 10px 30px rgba(109, 40, 217, 0.05) !important;
}
html.light-mode .features > div > div > div:hover {
    background: rgba(255, 255, 255, 1) !important;
}

/* Rates Table inside #rates */
html.light-mode #rates > div > div:last-child {
    background: #ffffff !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 20px 40px rgba(109, 40, 217, 0.08) !important;
}
html.light-mode #rates > div > div:last-child > div:first-child {
    background: rgba(109, 40, 217, 0.05) !important;
}
html.light-mode #rates > div > div:last-child > div {
    border-bottom: 1px solid rgba(109, 40, 217, 0.05) !important;
}
html.light-mode #rates > div > div:last-child > div > div {
    color: var(--text-primary) !important;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Blobs for modern depth */
body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
}
body::before {
    top: -10%; right: -5%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(123,44,191,0.4) 0%, rgba(123,44,191,0) 70%);
}
body::after {
    bottom: -10%; left: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(0,245,255,0.2) 0%, rgba(0,245,255,0) 70%);
}

a { text-decoration: none; color: inherit; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* ==========================================================================
   Header & Nav
   ========================================================================== */
header {
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}
.logo span {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--text-primary); }

.btn-primary {
    background: var(--btn-gradient);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 44, 191, 0.6);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 85vh;
    padding: 60px 0;
    gap: 40px;
}

.hero-content { flex: 1; }
.hero-visual { flex: 1; display: flex; justify-content: flex-end; position: relative;}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
}
.text-gradient {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

/* Shortener Box */
.shortener-box {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 50px;
    display: flex;
    box-shadow: var(--glass-shadow);
    margin-bottom: 40px;
}
.shortener-box input {
    background: transparent;
    border: none;
    padding: 16px 24px;
    color: #fff;
    font-size: 1.1rem;
    flex: 1;
    outline: none;
    font-family: inherit;
}
.shortener-box input::placeholder { color: rgba(255, 255, 255, 0.4); }
.shortener-box button {
    background: var(--text-primary);
    color: var(--bg-dark);
    border: none;
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.shortener-box button:hover { transform: scale(1.05); }

.hero-stats {
    display: flex;
    gap: 32px;
}
.stat {
    display: flex;
    flex-direction: column;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}
.stat .counter {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Glass Mockup */
.mockup-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--glass-shadow);
    transform: perspective(1000px) rotateY(-10deg) rotateX(10deg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: perspective(1000px) rotateY(-10deg) rotateX(10deg) translateY(0px); }
    50% { transform: perspective(1000px) rotateY(-10deg) rotateX(10deg) translateY(-20px); }
    100% { transform: perspective(1000px) rotateY(-10deg) rotateX(10deg) translateY(0px); }
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.mockup-info {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
}
.mockup-info span { color: var(--accent-secondary); }

.chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 150px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}
.bar {
    flex: 1;
    background: var(--glass-border);
    border-radius: 8px 8px 0 0;
    position: relative;
    overflow: hidden;
}
.bar .fill {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: var(--btn-gradient);
    border-radius: 8px 8px 0 0;
    transition: height 1s ease-out;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 100px 0;
}
.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 64px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    transition: transform 0.3s ease, background 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.feature-card p {
    color: var(--text-secondary);
}

/* ==========================================================================
   CTA & Footer
   ========================================================================== */
.cta {
    text-align: center;
    padding: 120px 0;
    background: radial-gradient(circle at center, rgba(123,44,191,0.2) 0%, transparent 60%);
}
.cta h2 { font-size: 3.5rem; margin-bottom: 24px; font-weight: 800; }
.cta p { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 40px; }

footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; }
    .hero-visual { display: none; }
    .hero h1 { font-size: 3rem; }
    .hero p { margin: 0 auto 32px auto; }
    .hero-stats { justify-content: center; }
    .nav-links { display: none; } /* Simplified mobile for now */
}
