/* Global CSS - Variables, Reset, Typography, Header, Footer */

:root {
    --primary-color: #fcc01b;
    --primary-dark: #d39a00;
    --secondary-color: #3B99FC;
    --hover-color: #E6B400;
    --text-color: #1A1A1A;
    --text-light: #666666;
    --text-muted: #999999;
    --white: #FFFFFF;
    --black: #000000;
    --gray-bg: #F9F9F9;
    --gray-light: #DDDDDD;
    --border-color: #DDDDDD;
    --border-light: #f0f0f0;
    --error-bg: #fff8f8;
    --error-text: #d32f2f;
    --error-border: #ffcdd2;

    --font-family: poppins, sans-serif;
    --max-width: 1200px;
    
    /* Specific Dimensions */
    --plan-img-height: 150px;
    --card-min-width: 300px;
    /* Design Tokens */
    --border-radius-sm: 10px;
    --border-radius: 20px;
    --border-radius-lg: 40px;
    --border-radius-pill: 50px;

    --section-padding-desktop: 80px;
    --section-padding-mobile: 60px;
    --section-gap: 100px;
    
    --spacing-xs: 10px;
    --spacing-sm: 15px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 40px;
    --spacing-xl: 40px;
    --spacing-2xl: 60px;
    --spacing-3xl: 80px;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.05);
    --shadow-blue: 0 20px 40px rgba(59, 153, 252, 0.2);

    /* Typography Scale */
    --font-hero: 3rem;
    --font-h1: 3rem;
    --font-h2: 2.5rem;
    --font-h3: 1.5rem;
    --font-title: 1.25rem;
    --font-large: 1.1rem;
    --font-body: 1rem;
    --font-small: 0.9rem;
    --font-xs: 0.8rem;
    /* Font Weights */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extra-bold: 800;

    /* Line Heights */
    --line-height-tight: 1.1;
    --line-height-normal: 1.2;
    --line-height-body: 1.5;
    --line-height-loose: 1.6;

    /* Z-Index */
    --z-index-negative: -1;
    --z-index-base: 1;
    --z-index-raised: 2;
    --z-index-sticky: 10;
    --z-index-header: 100;
    --z-index-modal: 1000;

    /* Layout & Sizes */
    --max-width-text-input: 200px;
    --max-width-text: 700px;
    --max-width-card: 900px;
    --max-width-grid: 1000px;
    --max-width-hero-img: 350px;
    --max-width-video: 400px;
    
    --icon-size-sm: 20px;
    --icon-size-md: 40px;
    --icon-size-lg: 80px;
    
    --header-height: 80px;    
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--white); /* Default white, overrides in specific pages if needed */
    color: var(--text-color);
    overflow-x: hidden;
}

app-footer {
    display: block;
    background-color: var(--white);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { background: none; border: none; font: inherit; color: inherit; cursor: pointer; }

/* Buttons Shared */
.btn-black {
    background: var(--black);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-pill);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-small);
    transition: transform 0.2s;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-black:hover {
    transform: translateY(-2px);
    background: var(--text-color);
}

.btn-outline {
    background: transparent;
    color: var(--black);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: var(--font-weight);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--black);
    cursor: pointer;
    display: inline-block;
}

/* Header */
.header {
    padding: 20px 0;
    position: relative;
    z-index: 100;
    background: transparent; /* Assuming overlay or white depending on page */
}

.nav-container {
    background: var(--white);
    border-radius: 50px;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 400;
    color: #444;
    font-size: 20px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.nav-link:hover, .nav-link.active {
    color: #000;
    font-weight: 600;
}

/* Dropdown Navigation Menu */
.nav-item-dropdown {
    position: relative;
    list-style: none;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    min-width: 260px;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
}

/* Invisible bridge to prevent dropdown closing when moving mouse */
.nav-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    font-size: 16px;
    color: #555;
    font-family: var(--font-family);
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, font-weight 0.2s ease;
    text-align: left;
    font-weight: 400;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: rgba(252, 192, 27, 0.15);
    color: #000;
    font-weight: 600;
}

/* Submenu caret rotation */
.nav-item-dropdown .ph-caret-down {
    transition: transform 0.2s ease;
    display: inline-block;
    vertical-align: middle;
}

.nav-item-dropdown:hover .ph-caret-down {
    transform: rotate(180deg);
}

.logo {
    font-size: 24px;
    font-weight: 400;
    font-family: var(--font-family);
    color: var(--primary-color);
    letter-spacing: 1px;
}


.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 2px;
}

.nav-right i {
    font-size: 1.2rem;
    cursor: pointer;
}

/* Main Footer */
.main-footer {
    background: var(--white);
    padding-top: 100px;
    padding-bottom: 40px;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    text-align: left;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--black);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    font-size: 1.5rem;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: var(--text-light);
    font-size: 0.9rem;
}
.footer-col ul li a:hover {
    color: var(--black);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Mobile Menu Overlay Defaults (Hidden on Desktop) */
.mobile-menu-btn { display: none; }

/* Responsive Footer/Nav */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-right { display: none; } /* Hide desktop right nav totally */
    
    .nav-container {
        padding: 15px 20px;
        justify-content: space-between;
    }

    .mobile-menu-btn {
        display: block; /* Show hamburger */
        font-size: 1.5rem;
        cursor: pointer;
        background: none;
        border: none;
        color: var(--black);
    }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
}

/* Mobile Menu Overlay Styling */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 1000;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}
.mobile-nav-link:hover { color: var(--primary-color); }

/* Common Utilities */
.hidden { display: none !important; }
.loading { text-align: center; color: var(--text-light); padding: 40px; }
.white-container { background: var(--white); min-height: 500px; padding: var(--section-padding-desktop) 0; }

/* CTA Card (Moved from home.css) */
.cta-container {
    position: relative; 
    z-index: var(--z-index-sticky); 
    background: var(--white);
    padding: var(--section-padding-desktop) 0;
}
.cta-card {
    background: var(--primary-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    text-align: center;
    max-width: var(--max-width-grid);
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}
.cta-card h2 {
    font-size: var(--font-h2);
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-semibold);
}
.cta-card p {
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-body);
    max-width: var(--max-width-text);
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}
.cta-form {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    max-width: var(--max-width-text);
    margin-left: auto;
    margin-right: auto;
}
.cta-form input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-pill);
    border: none;
    outline: none;
    font-size: var(--font-body);
    width: var(--max-width-text-input)
}
.cta-terms {
    font-size: var(--font-xs);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .cta-form { flex-direction: column; }
    .cta-container { margin-top: 0; padding-top: var(--section-padding-mobile); }
}

/* Mobile Menu Sublinks */
.mobile-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.mobile-sublinks {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.03);
    padding: 15px 30px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.mobile-sublink {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.2s ease;
}
.mobile-sublink:hover, .mobile-sublink:active {
    color: var(--black);
}
.mobile-sublink.highlight {
    color: var(--primary-dark);
    font-weight: 700;
}

/* ==========================================================================
   Spotlight Search Palette (Cmd+K)
   ========================================================================== */

.search-palette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 12vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.search-palette-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-palette-container {
    width: 92%;
    max-width: 680px;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(-20px) scale(0.98);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-palette-overlay.active .search-palette-container {
    transform: translateY(0) scale(1);
}

.search-palette-header {
    display: flex;
    align-items: center;
    padding: 22px 26px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    gap: 16px;
}

.search-palette-icon {
    font-size: 26px;
    color: #444;
}

#search-palette-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 18px;
    font-weight: 500;
    color: #111;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

#search-palette-input::placeholder {
    color: #888;
}

.search-palette-shortcut-hints {
    display: flex;
    align-items: center;
}

.search-palette-hint-key {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    background: rgba(0, 0, 0, 0.06);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.search-palette-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 12px 16px 22px 16px;
}

/* Custom scrollbar for search results */
.search-palette-results::-webkit-scrollbar {
    width: 8px;
}
.search-palette-results::-webkit-scrollbar-track {
    background: transparent;
}
.search-palette-results::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 99px;
}
.search-palette-results::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.search-palette-empty-state, 
.search-palette-no-results, 
.search-palette-loading {
    padding: 50px 24px;
    text-align: center;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.search-palette-empty-state i, 
.search-palette-no-results i, 
.search-palette-loading i {
    font-size: 36px;
    color: #fcc01b;
}

.search-palette-keyboard-tip {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

.kbd-key {
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-family: monospace;
    font-weight: 700;
    color: #444;
}

.search-palette-loading .spinner {
    font-size: 32px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, transform 0.15s ease, border 0.15s ease;
    border: 1px solid transparent;
}

.search-result-item:hover, 
.search-result-item.is-selected {
    background: rgba(252, 244, 217, 0.85);
    border: 1px solid rgba(252, 217, 0, 0.35);
    transform: scale(1.002);
}

.search-result-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.search-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    color: #444;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.search-result-item:hover .search-result-icon,
.search-result-item.is-selected .search-result-icon {
    background: rgba(252, 217, 0, 0.3);
    color: #8a6400;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}

.search-result-title {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-excerpt {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

.search-result-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.search-result-category {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 8px;
    border-radius: 6px;
}

.search-result-type-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 999px;
}

.search-result-type-tag.type-blog {
    background: #FFF8F3;
    color: #B86326;
}

.search-result-type-tag.type-tutorial {
    background: #F3F3FF;
    color: #6365EF;
}

.search-result-type-tag.type-faq {
    background: #F3FCFF;
    color: #258BAD;
}

.search-result-type-tag.type-pagina {
    background: #E8F5E9;
    color: #2E7D32;
}

@media (max-width: 768px) {
    .search-palette-overlay {
        padding-top: 5vh;
    }
    .search-palette-container {
        border-radius: 20px;
    }
    .search-palette-header {
        padding: 16px 20px;
    }
    #search-palette-input {
        font-size: 16px;
    }
    .search-result-item {
        padding: 10px 12px;
        border-radius: 12px;
    }
    .search-result-right {
        display: none; /* Hide type tag & category on small screens to save space */
    }
}

