/* Header */
.zikpic-header {
    background: var(--zikpic-white);
    border-bottom: 1px solid #e1e8ed;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--zikpic-shadow);
}
.zikpic-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.zikpic-logo {
    height: 45px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
}

.zikpic-logo img {
    height: 100%;
    width: auto;
    margin-right: 10px;
}

.zikpic-logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Search Bar */
.zikpic-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 25px;
    padding: 10px 16px;
    width: 300px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.zikpic-search input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    padding: 4px 8px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.zikpic-search input::placeholder {
    color: #666;
}

.zikpic-search i {
    color: var(--zikpic-green);
    margin-right: 8px;
}

/* Navigation Menu */
.zikpic-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 25px;
}

.zikpic-nav-item {
    position: relative;
}

.zikpic-nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    text-transform: uppercase;
}

.zikpic-nav-link:hover,
.zikpic-nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.zikpic-nav-link i {
    font-size: 0.9rem;
}

.activeh {
    background: var(--zikpic-light);
}

/* User Menu */
.zikpic-user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.zikpic-user-greeting {
    color: var(--white);
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.zikpic-btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.zikpic-btn-primary {
    background: var(--white);
    color: var(--zikpic-green);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.zikpic-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.zikpic-btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.zikpic-btn-secondary:hover {
    background: var(--white);
    color: var(--zikpic-green);
}

.zikpic-btn-success {
    background: var(--white);
    color: var(--zikpic-green);
    border: 2px solid var(--white);
}

.zikpic-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* User Avatar Dropdown */
.zikpic-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.zikpic-user-avatar:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--white);
    transform: scale(1.05);
}

.zikpic-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.zikpic-user-menu:hover .zikpic-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.zikpic-dropdown-item {
    display: block;
    padding: 12px 18px;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 8px;
    margin: 5px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.zikpic-dropdown-item:hover {
    background: var(--bg-light);
    color: var(--zikpic-green-dark);
    transform: translateX(5px);
}

.zikpic-dropdown-item i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
    color: var(--zikpic-green);
}

/* Mobile Menu */
.zikpic-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 500px) {
    
    .notification-dropdown {
        display: none;
    }
    .messages-dropdown {
        display: none;
    }
}
@media (max-width: 768px) {

    .zikpic-nav {
        padding: 0 15px;
        height: 60px;
    }
    
    .zikpic-search {
        display: none;
    }
    
    .zikpic-nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: linear-gradient(to bottom, #81d742, #3ac403);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
        gap: 0;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .zikpic-nav-menu.active {
        left: 0;
    }
    
    .zikpic-nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .zikpic-nav-link {
        display: block;
        width: 100%;
        padding: 20px;
        font-size: 1.1rem;
        justify-content: center;
    }
    
    .zikpic-mobile-toggle {
        display: block;
    }
    
    .zikpic-user-menu {
        gap: 8px;
    }
    
    .zikpic-user-greeting {
        display: none;
    }
    
    .zikpic-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .zikpic-logo-text {
        font-size: 1.2rem;
    }
    
    .zikpic-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
}}

/* Container */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    color: var(--zikpic-dark);
    transition: all 0.3s ease;
}

.header-logo:hover {
    color: var(--zikpic-primary);
    transform: scale(1.05);
}

.header-logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

/* Navegación central */
.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--zikpic-dark);
    font-weight: 500;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: var(--zikpic-green);
    color: white;
}

.nav-link.active {
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 15px;
    right: 15px;
    height: 2px;
    border-radius: 1px;
}

/* Sección derecha */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Botón de búsqueda */
.search-button {
    background: none;
    border: none;
    color: var(--zikpic-dark);
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.search-button:hover {
    background: rgba(129, 215, 66, 0.1);
    color: var(--zikpic-primary);
}

/* Botón login/avatar */
.login-button {
    background: var(--zikpic-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}

.login-button:hover {
    background: var(--zikpic-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(129, 215, 66, 0.3);
}

.login-button i {
    margin-right: 8px;
}

/* Avatar dropdown */
.avatar-dropdown {
    position: relative;
}

.avatar-trigger {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--zikpic-primary);
    color: white;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.avatar-trigger:hover {
    border-color: var(--zikpic-primary);
    box-shadow: 0 0 0 3px rgba(129, 215, 66, 0.2);
}

.avatar-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Menú avatar sin conflicto Bootstrap */
.avatar-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--zikpic-white);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 10px;
}

/* Mostrar menú con clase active (toggle) */
.avatar-dropdown .avatar-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
}

/* Hover solo en desktop (no en móvil) */
@media (min-width: 769px) {
    .avatar-dropdown:hover .avatar-menu,
    .avatar-dropdown .avatar-menu.hover-active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--zikpic-dark);
    font-size: 14px;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f3f4;
}

.dropdown-item:hover {
    background: rgba(129, 215, 66, 0.1);
    color: var(--zikpic-primary);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item i {
    margin-right: 12px;
    width: 16px;
    font-size: 16px;
}

.dropdown-item.logout {
    color: #e74c3c;
}

.dropdown-item.logout:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* Enlaces móviles de notificaciones y mensajes en dropdown */
.dropdown-item.mobile-only {
    display: none;
}

@media (max-width: 500px) {
    .dropdown-item.mobile-only {
        display: flex;
    }
    
    .dropdown-item.mobile-only .notification-badge,
    .dropdown-item.mobile-only .messages-badge {
        position: relative;
        top: auto;
        right: auto;
        margin-left: auto;
        min-width: 20px;
        height: 20px;
        font-size: 11px;
    }
}

/* Dropdown de notificaciones con transición suave */
.notification-dropdown-menu {
    position: absolute;
    right: 0;
    top: 120%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    min-width: 380px;
    max-width: 400px;
    z-index: 9999;
    max-height: 500px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    margin-top: 10px;
}

.notification-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Modal de búsqueda */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9999;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    background: var(--zikpic-white);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-form {
    padding: 20px;
    border-bottom: 1px solid #e1e8ed;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: var(--border-radius);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--zikpic-primary);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-section {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.search-section:last-child {
    border-bottom: none;
}

.search-section h5 {
    font-size: 12px;
    font-weight: 600;
    color: #8899a6;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f9fa;
    border-radius: 8px;
    margin: 0 -10px;
    padding: 12px 10px;
}

.result-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-thumbnail {
    color: #6c757d;
    font-size: 20px;
}

.result-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f8f9fa;
}

.result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-avatar {
    color: #6c757d;
    font-size: 18px;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #14171a;
    margin-bottom: 4px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-author, .result-genre, .result-count {
    font-size: 12px;
    color: #657786;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-empty, .search-loading, .search-error {
    text-align: center;
    padding: 40px 20px;
    color: #8899a6;
}

.search-loading {
    color: var(--zikpic-primary);
}

.search-error {
    color: #e1306c;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--zikpic-dark);
    margin-bottom: 8px;
}

.search-item:hover {
    background: rgba(129, 215, 66, 0.1);
}

.search-item-image {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    background: var(--zikpic-light);
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #8899a6;
}

.search-item-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.search-item-info p {
    font-size: 14px;
    color: #8899a6;
}

.search-empty {
    text-align: center;
    padding: 40px 20px;
    color: #8899a6;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .header-nav {
        display: none;
    }
    
    .header-actions {
        gap: 10px;
        align-items: center;
        display: flex;
        flex-direction: row;
    }
    
    .search-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    /* Botón login responsive - solo ícono en móvil */
    .login-button {
        padding: 10px !important;
        min-width: 40px !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        justify-content: center !important;
    }
    
    .login-button i {
        margin-right: 0 !important;
        font-size: 18px !important;
    }
    
    .login-button .login-text {
        display: none !important;
    }
    
    /* Botón de búsqueda ajustado */
    .search-button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    /* Avatar también más compacto */
    .avatar-trigger {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .hamburger-button { display: inline-flex !important; align-items: center; justify-content: center; background: transparent; border: none; border-radius: 50%; width: 40px; height: 40px; margin-right: 10px; box-shadow: none; cursor: pointer; z-index: 1101; }
    .hamburger-button svg rect { transition: fill 0.2s; fill: var(--zikpic-dark); }
    .search-button { margin-left: 0 !important; }
    .header-actions { display: flex; align-items: center; }
}
@media (min-width: 769px) {
    .hamburger-button { display: none !important; }
}
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('/assets/img/bg-hambur.webp') center center repeat-x;
    background-color: #6dd915;
    color: #fff;
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    animation: none;
}
.mobile-menu-overlay.active {
    display: flex;
    animation: slideDownMenu 0.35s cubic-bezier(.4,1.3,.6,1) forwards;
}
@keyframes slideDownMenu {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
}
.mobile-menu-content {
    width: 100%;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mobile-menu-nav {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.mobile-menu-link {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 0;
    width: 100%;
    text-align: center;
    border-radius: 12px;
    transition: background 0.18s;
}
.mobile-menu-link:hover {
    background: rgba(255,255,255,0.12);
}
.mobile-menu-nav hr {
    width: 60%;
    border: 0; border-top: 1.5px solid rgba(255,255,255,0.18);
    margin: 18px 0;
}

.mobile-menu-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    z-index: 2100;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.18s;
}
.mobile-menu-close svg {
    width: 38px;
    height: 38px;
    display: block;
}
.mobile-menu-close line {
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
}
.mobile-menu-close:hover {
    opacity: 0.7;
}
.mobile-menu-links-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}
.mobile-menu-links-wrapper a {
    font-size: 1.1rem;
}


/* Footer Styles */

.zikpic-footer {
    background: #f8f9fa;
    padding: 48px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-social {
    text-align: center;
    margin-bottom: 32px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: #a0aec0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.social-icon.instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icon.twitter:hover { background: #1da1f2; }
.social-icon.youtube:hover { background: #ff0000; }
.social-icon.facebook:hover { background: #1877f2; }
.social-icon.discord:hover { background: #7289da; }

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.footer-logo img {
    height: 45px;
    width: auto;
}

.footer-tagline {
    color: var(--text-gray, #666);
    margin-top: 4px;
    font-style: italic;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-gray, #666);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: var(--zikpic-primary, #81d742);
    transform: translateY(-1px);
}

.footer-copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.footer-copyright p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-gray, #666);
}

.footer-love {
    color: var(--zikpic-primary, #81d742);
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-alliance {
    color: var(--text-gray, #666);
    font-size: 0.8rem;
    margin-top: 8px;
}

.footer-alliance a {
    color: var(--zikpic-primary, #81d742);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-alliance a:hover {
    transform: scale(1.05);
    text-shadow: 0 0 8px rgba(129, 215, 66, 0.5);
}

@media (max-width: 768px) {
    .footer-links {
        gap: 16px;
        flex-direction: column;
        align-items: center;
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}