/* ============================================================================
   Letras Bonitas Live - Production-Ready Neon Dark Cyberpunk Stylesheet
   ============================================================================ */

/* CSS Custom Properties for Color Palette */
:root {
    --bg-primary: #070a12;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-cyan: #00f3ff;
    --accent-magenta: #ff007f;
    --accent-purple: #d000ff;
    --accent-pink: #ff006e;
    --accent-blue: #0080ff;
    --accent-green: #00ff88;
    
    /* Glassmorphism variables */
    --glass-blur: 12px;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-bg-darker: rgba(7, 10, 18, 0.9);
    
    /* Transition timing */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ============================================================================
   GLOBAL STYLES & RESETS
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: linear-gradient(135deg, #070a12 0%, #0f1729 50%, #070a12 100%);
    background-attachment: fixed;
    color: var(--text-secondary);
    font-family: 'Inter', 'system-ui', 'sans-serif';
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.3px;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
}

img, svg, video, canvas {
    max-width: 100%;
    display: block;
}

main, section, header, footer {
    width: 100%;
    max-width: 100%;
}

.container,
.max-w-5xl,
.max-w-6xl,
.max-w-7xl {
    width: min(100%, 1200px);
    max-width: 1200px;
    margin-inline: auto;
}

header .container,
header nav.container,
main.container,
main > .container,
main > section,
main > article,
main > div {
    width: min(100%, 1200px);
    max-width: 1200px;
    margin-inline: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Mobile responsive base styles */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    main, section, header, footer {
        width: 100%;
        overflow-x: hidden;
    }
    
    .container,
    .max-w-5xl,
    .max-w-6xl,
    .max-w-7xl {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ============================================================================
   KEYFRAME ANIMATIONS
   ============================================================================ */

/* Neon Glow Pulse Animation */
@keyframes neon-glow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(0, 243, 255, 0.4),
            0 0 40px rgba(0, 243, 255, 0.2),
            inset 0 0 20px rgba(0, 243, 255, 0.1);
        border-color: rgba(0, 243, 255, 0.6);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(0, 243, 255, 0.6),
            0 0 60px rgba(0, 243, 255, 0.3),
            inset 0 0 20px rgba(0, 243, 255, 0.15);
        border-color: rgba(0, 243, 255, 0.8);
    }
}

/* Input Border Glow (Cyan) */
@keyframes input-glow-cyan {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(0, 243, 255, 0.4),
            0 0 40px rgba(0, 243, 255, 0.2),
            inset 0 0 15px rgba(0, 243, 255, 0.05);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(0, 243, 255, 0.6),
            0 0 60px rgba(0, 243, 255, 0.3),
            inset 0 0 15px rgba(0, 243, 255, 0.1);
    }
}

/* Card Hover Float Animation */
@keyframes card-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Card Shadow Expand */
@keyframes card-shadow-expand {
    from {
        box-shadow: 
            0 4px 20px rgba(0, 243, 255, 0.1),
            0 0 30px rgba(208, 0, 255, 0.2);
    }
    to {
        box-shadow: 
            0 12px 40px rgba(0, 243, 255, 0.2),
            0 0 50px rgba(208, 0, 255, 0.4),
            inset 0 0 30px rgba(0, 243, 255, 0.05);
    }
}

/* Toast Slide-In Animation */
@keyframes toast-slide-in {
    from {
        transform: translateX(100%) translateY(0);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

/* Toast Slide-Out Animation */
@keyframes toast-slide-out {
    from {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%) translateY(0);
        opacity: 0;
    }
}

/* Toast Pulse Glow */
@keyframes toast-glow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(0, 243, 255, 0.5),
            0 0 40px rgba(0, 243, 255, 0.3),
            inset 0 0 20px rgba(0, 243, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(0, 243, 255, 0.7),
            0 0 60px rgba(0, 243, 255, 0.4),
            inset 0 0 20px rgba(0, 243, 255, 0.15);
    }
}

/* Chevron Rotate Animation */
@keyframes chevron-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(90deg);
    }
}

/* Chevron Reverse Rotate */
@keyframes chevron-rotate-reverse {
    from {
        transform: rotate(90deg);
    }
    to {
        transform: rotate(0deg);
    }
}

/* Accordion Content Expand */
@keyframes accordion-expand {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 500px;
        opacity: 1;
    }
}

/* Accordion Content Collapse */
@keyframes accordion-collapse {
    from {
        max-height: 500px;
        opacity: 1;
    }
    to {
        max-height: 0;
        opacity: 0;
    }
}

/* Shimmer Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================================================
   HEADER STYLES
   ============================================================================ */

header {
    backdrop-filter: blur(var(--glass-blur));
    background: var(--glass-bg);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 1280px);
    margin-inline: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Logo Styling */
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: neon-glow 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

/* Navigation Links */
nav a, nav button {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    font-weight: 500;
}

nav a:hover, nav button:hover {
    color: var(--accent-cyan);
}

/* Dropdown Menu */
.group:hover > div {
    visibility: visible;
    opacity: 1;
}

/* Dropdown Items */
.group > div a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.group > div a:hover {
    background-color: rgba(0, 243, 255, 0.1);
    padding-left: 1.5rem;
}

/* Mobile Menu Toggle */
#mobileMenu {
    animation: slideDown var(--transition-normal);
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
}

#mobileMenu.hidden {
    display: none;
}

#mobileMenu ul {
    width: 100%;
    box-sizing: border-box;
}

#mobileMenu li {
    width: 100%;
    display: list-item;
}

#mobileMenu a {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    word-wrap: break-word;
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 500px;
        opacity: 1;
    }
}

/* ============================================================================
   INPUT & FORM STYLES
   ============================================================================ */

#inputText {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(8px);
    border: 2px solid var(--accent-cyan) !important;
    color: var(--text-primary) !important;
    font-size: 16px; /* Prevent zoom on mobile Safari */
    padding: 1.5rem 1.5rem;
    border-radius: 0.75rem;
    transition: all var(--transition-normal);
    animation: input-glow-cyan 2s ease-in-out infinite;
}

#inputText::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

#inputText:focus {
    outline: none;
    box-shadow: 
        0 0 30px rgba(0, 243, 255, 0.6),
        0 0 60px rgba(0, 243, 255, 0.3),
        inset 0 0 20px rgba(0, 243, 255, 0.1) !important;
}

/* Character and Word Counter */
#charCount, #wordCount {
    color: var(--accent-cyan);
    font-weight: 600;
    font-family: 'Monaco', 'Courier New', monospace;
}

/* ============================================================================
   CATEGORY FILTER TABS
   ============================================================================ */

.category-filter {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid;
    background-color: transparent;
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}

.category-filter.active {
    border-color: var(--accent-cyan);
    color: var(--text-primary);
    background-color: rgba(0, 243, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.category-filter:hover:not(.active) {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* Responsive Filter Tabs */
@media (max-width: 768px) {
    .category-filter {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }
}

/* ============================================================================
   FONT RESULTS CARD STYLES
   ============================================================================ */

.font-card {
    background: linear-gradient(135deg, rgba(18, 27, 43, 0.92), rgba(10, 15, 26, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.25rem 1rem 1rem;
    transition: all 240ms ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.font-card:nth-child(3n+1) {
    border-color: rgba(0, 243, 255, 0.38);
    box-shadow: 0 0 0 1px rgba(0, 243, 255, 0.08), 0 12px 30px rgba(0, 243, 255, 0.08);
}

.font-card:nth-child(3n+2) {
    border-color: rgba(208, 0, 255, 0.38);
    box-shadow: 0 0 0 1px rgba(208, 0, 255, 0.08), 0 12px 30px rgba(208, 0, 255, 0.08);
}

.font-card:nth-child(3n+3) {
    border-color: rgba(255, 0, 110, 0.38);
    box-shadow: 0 0 0 1px rgba(255, 0, 110, 0.08), 0 12px 30px rgba(255, 0, 110, 0.08);
}

.font-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent 35%, rgba(0,243,255,0.03));
    pointer-events: none;
}

.font-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3), 0 0 25px rgba(0, 243, 255, 0.12);
}

.font-card-name {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c7eaff;
    opacity: 0.9;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.font-card-preview {
    font-size: 28px;
    line-height: 1.3;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-break: break-word;
    color: #f8fbff;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    transition: transform 180ms ease;
}

.font-card:hover .font-card-preview {
    transform: scale(1.08);
}

.font-card-copy-btn {
    width: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(208, 0, 255, 0.18));
    border: 1px solid rgba(0, 243, 255, 0.35);
    color: #f2fcff;
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: all 180ms ease;
}

.font-card-copy-btn:hover {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.24), rgba(255, 0, 110, 0.2));
    box-shadow: 0 0 18px rgba(0, 243, 255, 0.18);
}

.font-card-copy-btn.copied {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(34, 211, 238, 0.18));
    border-color: rgba(52, 211, 153, 0.9);
    color: #d1fae5;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.26);
}

/* Skeleton Card Loading Animation */
.skeleton-card {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================================================
   BLOG SECTION STYLES
   ============================================================================ */

#blog {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(15, 23, 42, 0.5));
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    border-bottom: 1px solid rgba(208, 0, 255, 0.2);
}

.blog-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.6));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-magenta);
    box-shadow: 
        0 12px 40px rgba(255, 0, 127, 0.2),
        0 0 50px rgba(208, 0, 255, 0.2);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(208, 0, 255, 0.1));
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-card-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.blog-card-link:hover {
    color: var(--accent-magenta);
}

/* Skeleton Blog Card */
.blog-skeleton {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================================================
   ARTICLE & CONTENT STYLES
   ============================================================================ */

article {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.3));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all var(--transition-normal);
}

article:hover {
    border-color: rgba(0, 243, 255, 0.3);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.4));
}

article h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
}

article h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

article p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

article strong {
    color: var(--accent-cyan);
    font-weight: 700;
}

article ul, article ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

article li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

article code {
    background: rgba(0, 243, 255, 0.1);
    color: var(--accent-cyan);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.08), rgba(208, 0, 255, 0.08));
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-left: 4px solid var(--accent-cyan);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box h3 {
    margin-top: 0;
    color: var(--accent-cyan);
}

/* ============================================================================
   ACCORDION FAQ STYLES
   ============================================================================ */

.accordion-item {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: all var(--transition-normal);
}

.accordion-item:hover {
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 243, 255, 0.1);
}

.accordion-header {
    padding: 1.5rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-normal);
    user-select: none;
}

.accordion-header:hover {
    background-color: rgba(0, 243, 255, 0.05);
}

.accordion-header i {
    transition: transform var(--transition-normal);
    font-size: 1rem;
}

.accordion-item.active .accordion-header i {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    transition: 
        max-height var(--transition-normal) ease,
        opacity var(--transition-normal) ease,
        padding var(--transition-normal) ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    opacity: 1;
    padding: 0 1.5rem 1.5rem 1.5rem;
    animation: accordion-expand var(--transition-normal) ease-out;
}

.accordion-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

/* ============================================================================
   TOAST NOTIFICATION STYLES
   ============================================================================ */

.toast-notification {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 180px;
    padding: 0.45rem 0.8rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(34, 211, 238, 0.5);
    color: rgba(226, 232, 240, 0.95);
    box-shadow: 0 10px 25px rgba(10, 14, 24, 0.42), 0 0 20px rgba(34, 211, 238, 0.18);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    pointer-events: none;
    user-select: none;
}

.toast-notification.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.toast-notification.hide {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
}

.toast-notification.success {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 10px 25px rgba(10, 14, 24, 0.42), 0 0 18px rgba(34, 211, 238, 0.16);
}

.toast-notification.error {
    border-color: rgba(244, 63, 94, 0.45);
    box-shadow: 0 10px 25px rgba(10, 14, 24, 0.42), 0 0 18px rgba(244, 63, 94, 0.15);
}

.toast-notification .toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.55);
    color: #4ade80;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.toast-notification.error .toast-icon {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.5);
    color: #fca5a5;
}

.toast-notification .toast-message {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Toast */
@media (max-width: 640px) {
    .toast-notification {
        right: 1rem;
        bottom: 1rem;
        max-width: 170px;
        padding: 0.4rem 0.7rem;
    }
}

/* ============================================================================
   BUTTON STYLES
   ============================================================================ */

button {
    font-family: inherit;
    letter-spacing: 0.3px;
}

/* Primary Button (Gradient) */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #000000;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 243, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-secondary:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

/* ============================================================================
   CALL-TO-ACTION SECTION
   ============================================================================ */

.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.05), rgba(208, 0, 255, 0.05));
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 1rem;
    margin-bottom: 3rem;
}

/* ============================================================================
   FOOTER STYLES
   ============================================================================ */

footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(15, 23, 42, 0.5));
    backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid rgba(0, 243, 255, 0.2);
}

footer h3 {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
}

footer a:hover {
    color: var(--accent-cyan);
}

footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Social Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.1);
    color: var(--accent-cyan);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.social-icon:hover {
    background: rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    transform: translateY(-3px);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    :root {
        font-size: 15px;
    }
    
    main {
        padding: 1.5rem 1rem;
    }
    
    article {
        padding: 1.5rem;
    }
    
    article h2 {
        font-size: 1.75rem;
    }
    
    article h3 {
        font-size: 1.25rem;
    }
    
    #inputText {
        font-size: 16px; /* Important: prevent iOS zoom */
        padding: 1.25rem;
    }
    
    .font-card-preview {
        font-size: 1.5rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }
    
    header nav {
        padding: 1rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    #inputText {
        font-size: 16px; /* Critical for iOS */
        padding: 1rem;
        border-radius: 0.5rem;
    }
    
    .category-filter {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .font-card {
        padding: 1rem;
    }
    
    .font-card-preview {
        font-size: 1.25rem;
        min-height: 40px;
    }
    
    .font-card-name {
        font-size: 0.75rem;
    }
    
    article {
        padding: 1.25rem;
    }
    
    article p {
        font-size: 0.95rem;
    }
    
    article ul, article ol {
        margin-left: 1.5rem;
    }
    
    .accordion-header {
        padding: 1.25rem;
        font-size: 0.95rem;
    }
    
    .accordion-content {
        padding: 0 1.25rem !important;
    }
    
    .toast-notification {
        right: 0.75rem;
        left: 0.75rem;
        bottom: 1rem;
        font-size: 0.9rem;
        padding: 0.9rem 1.25rem;
    }
}

/* Small Mobile (360px) */
@media (max-width: 360px) {
    #inputText {
        font-size: 16px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    h1 {
        font-size: 1.5rem !important;
    }
    
    .category-filter {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* ============================================================================
   ACCESSIBILITY & PRINT STYLES
   ============================================================================ */

/* Focus states for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    .category-filter,
    .font-card-copy-btn,
    .cta-section {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    article {
        border: none;
        background: white;
        box-shadow: none;
    }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.text-cyan {
    color: var(--accent-cyan);
}

.text-magenta {
    color: var(--accent-magenta);
}

.text-purple {
    color: var(--accent-purple);
}

.border-cyan {
    border-color: var(--accent-cyan);
}

.glow-cyan {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.glow-magenta {
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.4);
}

.glass {
    backdrop-filter: blur(var(--glass-blur));
    background: var(--glass-bg);
}

.hidden-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: block;
    }
}

/* ============================================================================
   END OF STYLESHEET
   ============================================================================ */

/* Homepage Value Sections */
.feature-card {
    position: relative;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(8, 12, 20, 0.95));
    border: 1px solid rgba(0, 243, 255, 0.18);
    border-radius: 22px;
    padding: 28px 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 243, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(0, 243, 255, 0.15), 0 16px 40px rgba(0, 243, 255, 0.1);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f8fbff;
    margin-bottom: 12px;
}

.feature-card p {
    color: #a8b3c7;
    line-height: 1.7;
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-icon.cyan {
    background: rgba(0, 243, 255, 0.12);
    color: var(--accent-cyan);
    box-shadow: inset 0 0 18px rgba(0, 243, 255, 0.12);
}

.feature-icon.purple {
    background: rgba(208, 0, 255, 0.12);
    color: var(--accent-purple);
    box-shadow: inset 0 0 18px rgba(208, 0, 255, 0.12);
}

.feature-icon.pink {
    background: rgba(255, 0, 110, 0.12);
    color: var(--accent-pink);
    box-shadow: inset 0 0 18px rgba(255, 0, 110, 0.12);
}

.section-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.35);
    color: var(--accent-cyan);
    margin-bottom: 16px;
}

.showcase-wrap {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    align-items: center;
    background: linear-gradient(135deg, rgba(14, 19, 32, 0.96), rgba(9, 12, 20, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.2);
}

.showcase-copy h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 18px;
    font-weight: 800;
    color: #f5f9ff;
}

.showcase-copy p {
    color: #b3bfd5;
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 22px;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-list span {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 18, 32, 0.8);
    color: #dfeaff;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
}

.showcase-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mini-card {
    border-radius: 18px;
    padding: 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 135px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: rgba(10, 15, 27, 0.75);
    box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.02);
}

.mini-card small {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.68rem;
}

.mini-card strong {
    font-size: 1.15rem;
    color: #f8fbff;
    line-height: 1.6;
}

.card-cyan { border-color: rgba(0, 243, 255, 0.35); }
.card-purple { border-color: rgba(208, 0, 255, 0.35); }
.card-pink { border-color: rgba(255, 0, 110, 0.35); }
.card-green { border-color: rgba(0, 255, 136, 0.35); }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.step-box {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(10, 14, 25, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    padding: 28px 20px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

.step-number {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-weight: 800;
    color: #070a12;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    margin-bottom: 18px;
    box-shadow: 0 0 24px rgba(0, 243, 255, 0.35);
}

.step-box h3 {
    color: #f5f7ff;
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-box p {
    color: #a9b8cb;
    line-height: 1.7;
}

/* Centered phone mockup showcase */
.phone-showcase-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 18px;
    margin-bottom: 24px;
}

.phone-scene {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 440px;
    width: min(31%, 320px);
    min-width: 220px;
}

.phone-shell {
    position: relative;
    width: 260px;
    height: 430px;
    padding: 10px 12px 12px;
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(22, 24, 36, 0.96), rgba(10, 13, 22, 0.98));
    border: 2px solid rgba(190, 222, 255, 0.6);
    box-shadow: 0 0 28px rgba(0, 243, 255, 0.18), 0 18px 40px rgba(0, 0, 0, 0.35);
    transform: rotate(-8deg);
}

.phone-scene:nth-child(2) .phone-shell {
    transform: rotate(0deg) scale(1.05);
}

.phone-scene:nth-child(3) .phone-shell {
    transform: rotate(8deg);
}

.phone-notch {
    width: 120px;
    height: 18px;
    border-radius: 999px;
    background: rgba(6, 10, 18, 0.8);
    margin: 2px auto 12px;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.phone-screen {
    position: relative;
    width: 100%;
    height: calc(100% - 34px);
    border-radius: 28px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    padding: 30px 24px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(55, 24, 66, 0.8), rgba(26, 50, 91, 0.9), rgba(130, 75, 255, 0.8));
}

.alt-screen {
    background: linear-gradient(135deg, rgba(90, 16, 50, 0.75), rgba(81, 34, 106, 0.8), rgba(59, 33, 89, 0.8));
}

.cyan-screen {
    background: linear-gradient(135deg, rgba(17, 54, 70, 0.8), rgba(62, 81, 164, 0.8), rgba(208, 92, 211, 0.8));
}

.phone-screen::before,
.phone-screen::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.28), transparent 65%);
    filter: blur(18px);
}

.phone-screen::before {
    top: -30px;
    right: -22px;
}

.phone-screen::after {
    bottom: -35px;
    left: -22px;
}

.phone-title {
    position: relative;
    z-index: 1;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.9;
    text-align: center;
    font-weight: 700;
    color: #ffd9f5;
    text-shadow: 0 0 14px rgba(255, 149, 235, 0.9), 0 0 26px rgba(86, 204, 255, 0.8);
    letter-spacing: 1px;
}

.small-title {
    font-size: clamp(1.7rem, 2.5vw, 2.5rem);
}

.tiny-title {
    font-size: clamp(1.8rem, 2.2vw, 2.3rem);
}

.phone-button {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    min-width: 140px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid rgba(123, 229, 255, 0.8);
    background: rgba(10, 20, 26, 0.25);
    color: #dffeff;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 0 18px rgba(0, 243, 255, 0.3);
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
    max-width: 1000px;
    margin: 0 auto;
}

.keyword-cloud span {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(10, 16, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #dfe7ff;
    font-size: 0.82rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .showcase-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
        padding: 1.25rem;
        border-radius: 20px;
    }

    .showcase-copy,
    .showcase-panel,
    .mini-card {
        min-width: 0;
        max-width: 100%;
    }

    .showcase-copy h2 {
        font-size: 2rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .showcase-copy p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .pill-list {
        gap: 0.5rem;
    }

    .pill-list span {
        max-width: 100%;
        padding: 0.55rem 0.8rem;
        white-space: normal;
    }

    .showcase-panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
    }

    .mini-card {
        min-height: 0;
        padding: 1rem 1.1rem;
        border-radius: 14px;
    }

    .mini-card strong {
        font-size: 1rem;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .steps-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .phone-scene {
        width: min(100%, 320px);
        min-width: 0;
        min-height: 400px;
    }

    .phone-shell {
        width: min(260px, calc(100vw - 72px));
    }
}

@media (max-width: 480px) {
    .showcase-wrap {
        padding: 1rem;
    }

    .showcase-copy h2 {
        font-size: 1.7rem;
    }

    .mini-card strong {
        font-size: 0.95rem;
    }

    .phone-showcase-wrap {
        gap: 0.75rem;
    }

    .phone-scene {
        min-height: 370px;
    }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 243, 255, 0.08), transparent 20%),
        radial-gradient(circle at 80% 15%, rgba(208, 0, 255, 0.10), transparent 22%),
        radial-gradient(circle at 50% 75%, rgba(255, 0, 110, 0.06), transparent 25%);
    animation: backgroundPulse 12s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.08); }
}

.result-toolbar {
    max-width: 420px;
    margin: 18px auto 0;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 16px;
    padding: 14px 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.08);
}

.zoom-label-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #dfeaff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

#fontZoomRange {
    width: 100%;
    accent-color: #00f3ff;
    cursor: pointer;
}
