/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #eef2ff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


/* Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb-nav a {
    color: #2a5298;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
    color: #1e3c72;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #adb5bd;
}

.breadcrumb-current {
    color: #495057;
    font-weight: 500;
}

/* Main Content Wrapper */
.main-content-wrapper {
    min-height: calc(100vh - 200px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 2rem 0;
    color: #667eea;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Layout Styles */
.main-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.content-left {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    margin-bottom: 1rem;
    position: relative;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.search-bar:focus-within {
    border-color: #667eea;
}

#search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

#search-input::placeholder {
    color: #999;
}

.search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #999;
    cursor: pointer;
    display: none;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.search-clear:hover {
    background-color: #f0f0f0;
    color: #666;
}


#share-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

#share-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-1px);
}

/* Sidebar Styles */
.sidebar .categories,
.popular-faces,
.quick-info {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.sidebar h2,
.sidebar h3 {
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.sidebar h2 {
    font-size: 1.3rem;
}

.sidebar h3 {
    font-size: 1.1rem;
}

.sidebar .category-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar .category-btn {
    padding: 0.8rem 1rem;
    background-color: #f8f9fa;
    color: #333;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
}

.sidebar .category-btn:hover,
.sidebar .category-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.popular-grid .face-box {
    padding: 0.8rem;
    font-size: 1rem;
    min-height: 50px;
}

.quick-info p {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.quick-info ul {
    list-style: none;
    margin: 0;
}

.quick-info li {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    padding-left: 1rem;
}

/* Text Faces Grid */
.text-faces {
    margin-bottom: 2rem;
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.text-faces h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
}

.faces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.face-box {
    padding: 1.2rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f7ff 100%);
    border: 2px solid #e8f0ff;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.face-box:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.face-box.copied {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-color: green;
    animation: copied 0.6s ease;
}

@keyframes copied {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-style: italic;
}

.no-results p {
    font-size: 1.1rem;
}

/* Explanation */
.explanation {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.explanation h2 {
    margin: 2rem 0 1rem;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
}

.explanation h2:first-child {
    margin-top: 0;
}

.explanation p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #555;
}

.explanation ul {
    list-style: none;
    margin: 1rem 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f7ff 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.explanation li {
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #333;
}

.explanation strong {
    color: #2a5298;
}

/* Footer */
footer {
    background: #667eea;
    color: white;
    padding: 3rem 0 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 0.8rem;
    color: #fff;
    line-height: 1.6;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #fff;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #fff;
}

 

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .top-header-content {
        padding: 0 15px;
        font-size: 12px;
    }
    
    .site-title {
        font-size: 14px;
    }
    
    .bookmark-text {
        font-size: 11px;
    }
    
 
    .container {
        padding: 0 15px;
    }
    
    .page-header {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .content-left {
        order: 1;
    }
    
    .sidebar .category-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .popular-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .faces-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.8rem;
    }
    
    .face-box {
        padding: 1rem;
        font-size: 1rem;
        min-height: 60px;
    }
    
    .footer-section {
        flex: 100%;
        text-align: center;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-clear {
        position: absolute;
        right: 15px;
        top: 1rem;
    }
    
    .copy-btn {
        border-radius: 0 0 12px 12px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .faces-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }
    
    .face-box {
        padding: 0.8rem;
        font-size: 0.9rem;
        min-height: 50px;
    }
    

    .sidebar .category-buttons {
        grid-template-columns: 1fr;
    }
    
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
     
    
    .text-faces,
    .explanation,
    .sidebar .categories,
    .popular-faces,
    .quick-info {
        padding: 1.5rem;
    }
}

 

/* Advertisement Styles */
.ad-container {
    position: relative;
    overflow: hidden;
    clear: both;
}

.ad-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

/* Sidebar Ad Styles */
.sidebar-ad {
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.sidebar-ad:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
}

/* In-Article Ad Styles */
.in-article-ad {
    border-left: 3px solid #667eea;
}

/* Mobile Ad Styles */
.mobile-ad {
    display: none;
}

/* Responsive Ad Styles */
.responsive-ad {
    max-width: 100%;
}

/* Ad Labels */
.ad-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-ad {
        display: block;
    }
    
    .desktop-ad {
        display: none;
    }
    
    .ad-container {
        margin: 15px 0;
    }
    
    .sidebar-ad {
        margin: 15px 0;
        padding: 10px;
    }
    
    .in-article-ad {
        margin: 20px 0;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .ad-container {
        margin: 10px 0;
    }
}

/* Ad Blocker Detection */
.ad-blocker-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.ad-blocker-message h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.ad-blocker-message p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Loading Animation for Ads */
.ad-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite;
    border-radius: 4px;
    min-height: 100px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}















 

/* Main Header Styles */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
}

/* Logo Styles */
.logo {
    flex-shrink: 0;
}

.logo a {
    text-decoration: none;
    color: #333;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.9;
}

.logo-text {
    color: #333;
}

.logo-domain {
    color: #667eea;
    margin-left: 2px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile menu toggle animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu-container {
    display: flex;
    align-items: center;
}

.mobile-header {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
    margin: 0 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    color: #667eea;
}

.nav-icon {
    margin-right: 8px;
    font-size: 16px;
}

.nav-text {
    font-size: 14px;
}

.dropdown-arrow {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 280px;
    max-width: 320px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-header {
    padding: 16px 20px 12px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 16px;
}

.dropdown-list {
    padding: 12px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

.dropdown-icon {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dropdown-item span:not(.dropdown-icon) {
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item small {
    color: #666;
    font-size: 12px;
    margin-top: 2px;
    display: block;
}

/* Nav Overlay */
.nav-overlay {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .main-navigation.active {
        transform: translateX(0);
    }
    
    .nav-overlay {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: transparent;
        z-index: 1;
    }
    
    .nav-menu-container {
        background: white;
        width: 300px;
        height: 100vh;
        padding: 0;
        display: flex;
        flex-direction: column;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        z-index: 2;
        position: relative;
    }
    
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
       
    }
    
    .mobile-logo {
        color: #333;
        font-size: 18px;
        font-weight: bold;
    }
    
    .mobile-close {
        background: none;
        border: none;
        color: #333;
        font-size: 24px;
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        transition: background-color 0.3s ease;
        line-height: 1;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-close:hover {
        background-color: #e9ecef;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 20px 0;
        overflow-y: auto;
        flex: 1;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
    }
    
    .nav-link {
        padding: 16px 24px;
        border-radius: 0;
        justify-content: flex-start;
        border-bottom: 1px solid #e0e0e0;
        color: #333;
    }
    
    .nav-link:hover {
        background-color: #f8f9fa;
        transform: none;
        padding-left: 32px;
        color: #667eea;
    }
    
    .nav-icon {
        margin-right: 12px;
        font-size: 18px;
        width: 24px;
    }
    
    .nav-text {
        font-size: 16px;
    }
    
    /* Mobile Dropdown Styles */
    .nav-dropdown {
        position: relative;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #fff;
        border-radius: 0;
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        border: none;
    }
    
    .nav-dropdown.mobile-active .dropdown-menu {
        max-height: 600px;
    }
    
    .dropdown-header {
        color: #666;
        font-size: 12px;
        padding: 12px 24px 8px;
        background: #e9ecef;
        margin: 0;
    }
    
    .dropdown-grid {
        grid-template-columns: 1fr;
        padding: 8px;
        gap: 2px;
    }
    
    .dropdown-list {
        padding: 8px;
    }
    
    .dropdown-item {
        padding: 12px 24px;
        margin-bottom: 2px;
        border-radius: 6px;
        color: #555;
          background-color: #f8f9fa;
    }
    
    .dropdown-item:hover {
        background-color: white;
        transform: none;
        color: #667eea;
    }
    
    .dropdown-arrow {
        margin-left: auto;
        transition: transform 0.3s ease;
    }
    
    .nav-dropdown.mobile-active .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-container {
        padding: 0 15px;
    }
    
    .nav-link {
        padding: 10px 12px;
    }
    
    .nav-text {
        font-size: 13px;
    }
    
    .dropdown-menu {
        min-width: 260px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .logo a {
        font-size: 20px;
    }
    
    .nav-menu-container {
        width: 280px;
    }
    
    .mobile-header {
        padding: 15px;
    }
    
    .mobile-logo {
        font-size: 16px;
    }
}



/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Focus states for accessibility */
.nav-link:focus,
.dropdown-item:focus,
.mobile-close:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}



 



.toast-msg {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.9rem;
 
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, bottom 0.4s ease;
    z-index: 9999;
}

.toast-msg.show {
    opacity: 1;
    bottom: 50px;
}

