/*
 Theme Name:  Wikilogy Child
 Description: Child theme per il tema Wikilogy
 Author:      Il Tuo Nome
 Template:    wikilogy
 Version:     1.0.0
*/

/* =================================================================
   ONLYPEDIA HOMEPAGE STYLES
   Clean, minimal search-focused design with typewriter animation
   ================================================================= */

/* Reset e base */
.homepage-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F7;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 80px 20px 120px;
    box-sizing: border-box;
}

.homepage-hero {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.hero-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Hero Title - Due righe stabili */
.hero-title {
    font-size: 4.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.05em;
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title-line1,
.hero-title-line2 {
    background: linear-gradient(90deg, #4b0d85, #00B6E6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #4b0d85; /* Fallback */
}

.hero-title-line2 {
    margin-top: 8px;
}

/* Typewriter - Stesso stile del resto */
.typewriter-text {
    display: inline-block;
    min-width: 120px;
    text-align: left;
    position: relative;
    /* Stesso gradient del resto del titolo */
    background: linear-gradient(90deg, #4b0d85, #00B6E6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #4b0d85 !important; /* Fallback */
    font-weight: 500; /* Stesso peso del resto */
}

.typewriter-text::after {
    content: '|';
    color: #03aff0;
    animation: blink 1s infinite;
    margin-left: 2px;
    /* FORCE cursore visibile */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #03aff0 !important;
    font-weight: 300; /* Cursore più sottile */
}



@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Description */
.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Search Bar */
.homepage-search {
    width: 100%;
    max-width: 520px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.search-input-wrapper:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #03aff0;
}

.search-input-wrapper:focus-within {
    box-shadow: 0 8px 30px rgba(3, 175, 240, 0.15);
    border-color: #03aff0;
    transform: translateY(-2px);
}

.search-input {
    width: 100%;
    padding: 20px 70px 20px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    background: transparent;
    outline: none;
    font-family: inherit;
}

.search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-button {
    position: absolute;
    right: 6px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #03aff0, #0288d1);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
}

.search-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(3, 175, 240, 0.4);
}

.search-button:active {
    transform: scale(0.95);
}



/* Search Suggestions - Modern Style */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 320px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    margin-top: -1px;
}

.search-suggestions.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 0 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
    font-weight: 500;
    text-decoration: none;
}

.suggestion-item:hover {
    background: linear-gradient(135deg, rgba(3, 175, 240, 0.08), rgba(2, 136, 209, 0.08));
    color: #03aff0;
    transform: translateX(4px);
}

.suggestion-item:first-child {
    margin-top: 6px;
}

.suggestion-item:last-child {
    margin-bottom: 6px;
}

.suggestion-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.suggestion-item .suggestion-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.suggestion-item .suggestion-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.suggestion-item .suggestion-username {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

.suggestion-item:hover .suggestion-username {
    color: #03aff0;
}

/* Loading state */
.search-suggestions .loading-suggestion {
    padding: 16px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.search-suggestions .no-results {
    padding: 16px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* Scrollbar styling */
.search-suggestions::-webkit-scrollbar {
    width: 4px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: transparent;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: rgba(3, 175, 240, 0.3);
    border-radius: 2px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: rgba(3, 175, 240, 0.5);
}











/* App Store Badges - Professional Design */
.app-badges {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.badge-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.app-badge {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 200px;
    height: 60px;
    background: #000;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: not-allowed;
    opacity: 0.85;
    padding: 0 16px;
    gap: 12px;
}

.app-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.app-badge-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.app-badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.badge-text-small {
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 2px;
    opacity: 0.8;
}

.badge-text-large {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

/* App Store specific styling */
.app-store-badge {
    background: linear-gradient(135deg, #000, #1a1a1a);
}

.google-play-badge {
    background: linear-gradient(135deg, #000, #1a1a1a);
}









/* Disclaimer */
.homepage-disclaimer {
    background: #f8f9fa;
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.homepage-disclaimer p {
    font-size: 11px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .homepage-main {
        padding: 40px 15px 80px;
    }
    
    .hero-title {
        font-size: 3rem;
        letter-spacing: -3px;
    }
    
    .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 0.1em;
}
    
    .hero-description {
        font-size: 1rem;
    }
    
    .badge-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .app-badge {
        width: 200px;
    }
    
    .hero-container {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-input {
        padding: 15px 50px 15px 20px;
        font-size: 1rem;
    }
    
    .search-button {
        width: 38px;
        height: 38px;
    }
}






/* SVG Icons for App Badges */
.app-store-icon {
    fill: white;
}

.google-play-icon {
    fill: white;
}