/*
Theme Name: Theelyrics Theme
Theme URI: https://theelyrics.com
Author: Theelyrics
Author URI: https://theelyrics.com
Description: Premium Custom Theme for Theelyrics.com - Features a modern, vibrant, glassmorphism UI.
Version: 2.0.2
Text Domain: theelyrics-theme
*/

/* Google Fonts loaded via wp_enqueue_style in functions.php */

:root {
    /* Color Palette */
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #ec4899;
    --dark: #0f172a;
    --light: #f8fafc;
    --surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    /* Layout & Utilities */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.3);
    
    --container: 1200px;
}

body.dark-mode {
    --light: #0f172a;       /* Slate 900 */
    --surface: #1e293b;     /* Slate 800 */
    --text-main: #f8fafc;   /* Slate 50 */
    --text-muted: #94a3b8;  /* Slate 400 */
    --border: #334155;      /* Slate 700 */
    
    /* Slightly tweak primary in dark mode for better contrast if needed, but #4F46E5 is fine */
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: var(--primary-hover); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── HEADER ── */
.site-header {
    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);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-branding a span { color: var(--primary); }

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}
.main-navigation a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}
.main-navigation a:hover { color: var(--primary); }

/* ── HERO SECTION ── */
.hero-section {
    position: relative;
    padding: 6rem 1rem 8rem;
    text-align: center;
    background: linear-gradient(135deg, var(--dark) 0%, #1e1b4b 100%);
    overflow: hidden;
    color: white;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 50%; height: 100%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    opacity: 0.4;
    filter: blur(80px);
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%; right: -10%;
    width: 50%; height: 100%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 60%);
    opacity: 0.3;
    filter: blur(80px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: #94a3b8;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-search {
    display: flex;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    padding: 6px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}
.hero-search:focus-within {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    box-shadow: var(--shadow-glow);
}

.hero-search input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: white;
    font-size: 1.1rem;
    font-family: inherit;
    outline: none;
}
.hero-search input::placeholder { color: rgba(255,255,255,0.6); }

.hero-search button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 0 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-search button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
}

/* ── TOOLS GRID ── */
.tools-section {
    padding: 5rem 0;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.tool-card:hover::before { opacity: 1; }

.tool-icon {
    width: 60px;
    height: 60px;
    background: #e0e7ff;
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s, background 0.3s;
}
.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: white;
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}
.tool-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    flex-grow: 1;
}

/* ── FOOTER ── */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-widget h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark);
}
.footer-widget ul {
    list-style: none;
}
.footer-widget ul li {
    margin-bottom: 0.75rem;
}
.footer-widget ul a {
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer-widget ul a:hover { color: var(--primary); }

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 1rem; }
    .main-navigation ul { flex-wrap: wrap; justify-content: center; }
    .hero-search { flex-direction: column; background: transparent; border: none; box-shadow: none; gap: 10px; }
    .hero-search input[type="search"] { background: rgba(255,255,255,0.1); border-radius: var(--radius-full); }
    .hero-search button { padding: 1rem; width: 100%; }
}
/* -- SINGLE TOOL PAGE -- */
.tool-header-section { background: linear-gradient(135deg, var(--dark), #1e1b4b); padding: 4rem 1rem 6rem; text-align: center; color: white; margin-bottom: -3rem; position: relative; }
.tool-header-section::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 50%; background: linear-gradient(to top, var(--light), transparent); }
.tool-header-title { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; background: linear-gradient(to right, #fff, #cbd5e1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; position: relative; z-index: 2; }
.tool-header-desc { color: #94a3b8; max-width: 600px; margin: 0 auto; font-size: 1.15rem; position: relative; z-index: 2; }
.tool-interface-wrapper { max-width: 900px; margin: 0 auto 4rem; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); padding: 3rem; position: relative; z-index: 10; }
.tool-details-content { max-width: 900px; margin: 0 auto; background: white; border-radius: var(--radius-lg); padding: 3rem; box-shadow: var(--shadow-sm); }
.tool-details-content h2 { font-size: 2rem; margin: 2rem 0 1rem; color: var(--dark); }
.tool-details-content p { margin-bottom: 1rem; color: var(--text-muted); font-size: 1.1rem; }
.tool-details-content ul { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--text-muted); }
.related-tools-section { max-width: 1200px; margin: 4rem auto; padding: 0 1.5rem; }
.related-tools-title { font-size: 2rem; font-weight: 800; margin-bottom: 2rem; color: var(--dark); text-align: center; }

/* ==========================================================================
   Social Sharing Buttons & Toast Notifications (Stage 16)
   ========================================================================== */

/* Social Share Block */
.tl-social-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    flex-wrap: wrap;
}
body.dark-mode .tl-social-share {
    background: rgba(30, 41, 59, 0.5);
}
.tl-social-share-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-right: 10px;
}
.tl-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    cursor: pointer;
    border: none;
}
.tl-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #fff;
}
.tl-social-btn-wa { background: #25D366; }
.tl-social-btn-tw { background: #1DA1F2; }
.tl-social-btn-fb { background: #1877F2; }
.tl-social-btn-copy { background: var(--text-muted); }

/* Global Toast Notification */
.tl-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.tl-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    color: var(--text-main);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    pointer-events: auto;
}
.tl-toast.show {
    transform: translateX(0);
    opacity: 1;
}
.tl-toast-success .tl-toast-icon { color: #10B981; }
.tl-toast-error .tl-toast-icon { color: #EF4444; }
.tl-toast-icon { display: flex; align-items: center; }
.tl-toast-msg { font-size: 0.95rem; font-weight: 500; }
/* ==========================================================================
   Favorites & Recent Tools (Stage 17)
   ========================================================================== */

/* Star Favorite Button */
.tl-star-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--text-muted);
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}
body.dark-mode .tl-star-btn {
    background: rgba(30, 41, 59, 0.8);
}
.tl-star-btn:hover {
    transform: scale(1.1);
    color: #fbbf24;
    border-color: #fbbf24;
}
.tl-star-btn .star-solid {
    color: #fbbf24;
}

/* Tool Card wrapper */
.tool-card-wrapper {
    position: relative;
    transition: transform 0.2s;
}
.tool-card-wrapper:hover {
    transform: translateY(-4px);
}
.tool-card-wrapper:hover .tool-card {
    transform: none; /* override previous hover */
}
/* ==========================================================================
   Blog Styles (Stage 18)
   ========================================================================== */
.blog-post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.single-post-content h2, .single-post-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: var(--text-main);
}
.single-post-content p {
    margin-bottom: 1.2em;
}
.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1em 0;
}
.single-post-content ul, .single-post-content ol {
    margin-bottom: 1.2em;
    padding-left: 1.5em;
}
.single-post-content li {
    margin-bottom: 0.5em;
}
.single-post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1.5em 0;
    color: var(--text-muted);
    font-style: italic;
}
/* ==========================================================================
   FAQ Accordion Styles (Stage 19)
   ========================================================================== */
.tl-faq-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}
.tl-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.tl-accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.tl-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--surface);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    transition: background 0.2s;
}
.tl-accordion-header:hover {
    background: rgba(0,0,0,0.02);
}
body.dark-mode .tl-accordion-header:hover {
    background: rgba(255,255,255,0.02);
}
.tl-accordion-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}
.tl-accordion-header.active .tl-accordion-icon {
    transform: rotate(180deg);
}
/* ==========================================================================
   Breadcrumbs (Stage 24)
   ========================================================================== */
.tl-breadcrumbs {
    margin-bottom: 5px;
}
.tl-bc-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}
.tl-bc-li {
    display: flex;
    align-items: center;
}
.tl-bc-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
a.tl-bc-item:hover {
    color: var(--primary);
}
.tl-bc-current {
    color: var(--text-main);
    font-weight: 500;
}
.tl-bc-sep {
    color: var(--text-muted);
    opacity: 0.5;
    margin: 0 2px;
}

/* ==========================================================================
   Cookie Consent Banner (Stage 24)
   ========================================================================== */
.tl-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    padding: 0 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}
.tl-cookie-banner.show {
    transform: translateY(0);
    pointer-events: auto;
}
.tl-cookie-content {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    width: 100%;
    flex-wrap: wrap;
}
.tl-cookie-icon {
    font-size: 2rem;
    flex-shrink: 0;
}
.tl-cookie-text {
    flex: 1;
    min-width: 200px;
}
.tl-cookie-text strong {
    display: block;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 4px;
}
.tl-cookie-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}
.tl-cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.tl-cookie-btn {
    padding: 9px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.tl-cookie-btn-decline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.tl-cookie-btn-decline:hover {
    border-color: var(--text-muted);
    color: var(--text-main);
}
.tl-cookie-btn-accept {
    background: var(--primary);
    color: #fff;
}
.tl-cookie-btn-accept:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .tl-cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .tl-cookie-actions {
        width: 100%;
        justify-content: center;
    }
}
/* -- SOCIAL SHARE (Stage 25) -- */
.tl-social-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.tl-share-label {
    font-weight: 600;
    color: var(--text-muted);
}
.tl-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--surface-light);
    border: none;
    cursor: pointer;
}
.tl-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: #fff;
}
.tl-share-btn.tl-whatsapp { background: #25D366; }
.tl-share-btn.tl-twitter { background: #000000; }
.tl-share-btn.tl-facebook { background: #1877F2; }
.tl-share-btn.tl-copy { background: var(--text-muted); }

/* -- RELATED TOOLS -- */
.related-tools-section {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    margin-top: 20px;
    margin-bottom: 40px;
}
.related-tools-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

/* -- HEADER ACTIONS (Stage 26) -- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* AJAX Search */
.tl-search-wrapper {
    position: relative;
}
.tl-search-form {
    display: flex;
    align-items: center;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 5px 15px;
    transition: all 0.3s;
}
.tl-search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.tl-search-input {
    border: none;
    background: transparent;
    outline: none;
    padding: 8px 5px;
    font-size: 0.95rem;
    color: var(--text-main);
    width: 200px;
    font-family: inherit;
}
.tl-search-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
}
.tl-search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 10px;
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}
.tl-search-results.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}
.tl-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.tl-search-item:last-child {
    border-bottom: none;
}
.tl-search-item:hover {
    background: var(--light);
}
.tl-search-icon {
    width: 32px;
    height: 32px;
    background: rgba(79,70,229,0.1);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tl-search-text {
    font-weight: 600;
    font-size: 0.9rem;
}
.tl-search-empty {
    padding: 15px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.tl-search-spinner {
    padding: 15px;
    text-align: center;
    color: var(--primary);
    display: none;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
.tl-search-spinner svg {
    animation: spin 1s linear infinite;
}

/* Dark Mode Toggle */
.tl-dark-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
}
.tl-dark-toggle:hover {
    background: var(--light);
}
.tl-dark-toggle .moon-icon { display: none; }
body.dark-mode .tl-dark-toggle .moon-icon { display: block; }
body.dark-mode .tl-dark-toggle .sun-icon { display: none; }

@media (max-width: 768px) {
    .tl-search-input { width: 120px; }
}

/* -- 404 PAGE (Stage 29) -- */
.tl-404-wrapper {
    padding: 60px 20px 80px;
    max-width: 900px;
    margin: 0 auto;
}
.tl-404-content {
    text-align: center;
}
.tl-404-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 30px;
}
.tl-404-number span {
    font-size: 8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.tl-404-gear {
    color: var(--primary);
    animation: spin404 4s linear infinite;
}
@keyframes spin404 {
    100% { transform: rotate(360deg); }
}
.tl-404-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-main);
}
.tl-404-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.7;
}
.tl-404-search {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}
.tl-404-search form {
    width: 100%;
    max-width: 500px;
}
.tl-404-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.tl-404-links .tl-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tl-404-suggestions {
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

