/* ===============================================
   MODERN HEADER + MENU
   =============================================== */

/* Header - Logo Section - Modern Gradient Style */
.pn-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 12px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
    z-index: 100;
}

.pn-header .logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.pn-header .logo:hover {
    transform: scale(1.02);
}

.pn-header .logo-img {
    height: 50px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: filter;
}

.pn-header .logo:hover .logo-img {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

/* Main Navigation Menu - Modern Glass Style */
.pn-nav {
    background: #1e293b;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pn-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 5px 0;
}

.pn-nav-item {
    color: #94a3b8;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    border-radius: 8px;
    border: none;
    position: relative;
    will-change: transform, background-color;
}

.pn-nav-item:last-child {
    border-right: none;
}

.pn-nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.pn-nav-item.active {
    background: rgba(255, 87, 34, 0.1);
    color: #ff5722;
}

/* Mobile Menu Toggle */
.pn-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
}

/* ===============================================
   SMART SEARCH BAR - COMPACT GRAY STYLE
   =============================================== */

.search-wrapper {
    background: #6a6a6a;
    padding: 10px;
    display: block !important;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 30px;
    padding: 4px 4px 4px 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s, transform 0.3s;
}

.search-box:focus-within {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.search-icon {
    width: 16px;
    height: 16px;
    color: #999;
    flex-shrink: 0;
}

.search-box input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 6px 8px;
    font-size: 13px;
    background: transparent;
    min-width: 0;
}

.search-box input::placeholder {
    color: #aaa;
}

.search-box select {
    border: none;
    outline: none;
    background: #f0f0f0;
    padding: 5px 8px;
    border-radius: 15px;
    font-size: 11px;
    color: #555;
    cursor: pointer;
    margin-right: 4px;
}

.search-box button {
    background: linear-gradient(135deg, #4a9d4a 0%, #3d8b3d 100%);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
    flex-shrink: 0;
    will-change: transform;
}

.search-box button:hover {
    transform: scale(1.05);
}

.search-box button svg {
    width: 14px;
    height: 14px;
    color: #fff;
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    display: none;
    z-index: 1000;
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
}

.search-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-loading {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #666;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-section {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.search-section:last-child {
    border-bottom: none;
}

.section-title {
    padding: 0 20px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s, transform 0.2s;
    will-change: background-color;
}

.result-item:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

.result-thumb {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    background: #f0f0f0;
}

.result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-thumb .no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.artist-thumb {
    border-radius: 50%;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
}

.result-meta {
    font-size: 13px;
    color: #888;
}

.no-results {
    padding: 40px 20px;
    text-align: center;
    color: #888;
}

.no-results svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* Recent Searches */
.recent-searches {
    border-top: 1px solid #f0f0f0;
    padding: 15px 0;
}

.clear-recent {
    float: right;
    color: #667eea;
    cursor: pointer;
    font-size: 11px;
    text-transform: uppercase;
}

.clear-recent:hover {
    text-decoration: underline;
}

.recent-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    color: #555;
    transition: background-color 0.2s;
}

.recent-item:hover {
    background: #f8f9ff;
}

.recent-item svg {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .pn-header .logo-img {
        height: 36px;
        max-width: 200px;
    }
    
    .pn-header {
        padding: 10px 0;
    }
    
    .pn-menu-toggle {
        display: block;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        padding: 5px;
    }
    
    .pn-header {
        position: relative;
    }
    
    .pn-nav {
        display: none;
    }
    
    .pn-nav.show {
        display: block;
    }
    
    .pn-nav-container {
        flex-direction: column;
    }
    
    .pn-nav-item {
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .pn-nav-item:last-child {
        border-right: none;
    }
    
    .search-wrapper {
        padding: 8px;
    }
    
    .search-box {
        border-radius: 25px;
        padding: 3px 3px 3px 10px;
    }
    
    .search-box #searchFilter,
    .search-box select#searchFilter,
    #searchFilter {
        display: block !important;
        padding: 4px 6px;
        font-size: 10px;
        border-radius: 12px;
        background: #f0f0f0;
        flex-shrink: 0;
    }
    
    .search-box input[type="text"] {
        padding: 5px 6px;
        font-size: 12px;
    }
    
    .search-box button {
        width: 28px;
        height: 28px;
    }
    
    .search-box button svg {
        width: 12px;
        height: 12px;
    }
    
    .search-icon {
        width: 14px;
        height: 14px;
    }
    
    .search-dropdown {
        border-radius: 15px;
        margin: 0 5px;
        left: 0;
        right: 0;
    }
}

/* Hide old elements */
header:not(.pn-header) { display: none !important; }
.quick-nav { display: none !important; }

/* ===============================================
   MODERN FOOTER STYLE
   =============================================== */
.pn-footer {
    background: #1a1a1a;
    color: #b0b0b0;
    padding: 60px 0 0;
    margin-top: 50px;
    font-size: 14px;
    border-top: 4px solid #ff5722;
}

.pn-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
}

.pn-footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.pn-footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #ff5722;
    border-radius: 2px;
}

.pn-footer-col p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.pn-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pn-footer-links li {
    margin-bottom: 12px;
}

.pn-footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    will-change: transform;
}

.pn-footer-links a:hover {
    color: #ff5722;
    transform: translateX(5px);
}

.pn-footer-links a::before {
    content: '›';
    font-size: 18px;
    color: #555;
    transition: color 0.3s;
}

.pn-footer-links a:hover::before {
    color: #ff5722;
}

.pn-social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.pn-social-btn {
    width: 42px;
    height: 42px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s, box-shadow 0.3s;
    font-size: 18px;
    will-change: transform;
}

.pn-social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.pn-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.pn-social-fb:hover {
    background: #1877F2;
}

.pn-social-tg:hover {
    background: #0088cc;
}

.pn-copyright {
    background: #111;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #2a2a2a;
    font-size: 13px;
}

.pn-copyright a {
    color: #ff5722;
    text-decoration: none;
    font-weight: 600;
}

.pn-copyright a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .pn-footer {
        padding: 40px 0 0;
    }
    
    .pn-footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===============================================
   MODERN PAGINATION STYLE
   =============================================== */
nav.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 20px 10px;
}

nav.pagination ul.page {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 12px 20px;
    margin: 0;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

nav.pagination ul.page li {
    margin: 0;
}

nav.pagination ul.page li a,
nav.pagination ul.page li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 21px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, background-color 0.3s, color 0.3s, box-shadow 0.3s;
    will-change: transform;
}

nav.pagination ul.page li a {
    color: #555;
    background: #f5f5f5;
}

nav.pagination ul.page li a:hover {
    background: linear-gradient(135deg, #ff5722 0%, #ff8a50 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

nav.pagination ul.page li.active span {
    background: linear-gradient(135deg, #ff5722 0%, #ff8a50 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

nav.pagination ul.page li.disabled span {
    color: #ccc;
    background: #f9f9f9;
    cursor: not-allowed;
}

nav.pagination ul.page li.ellipsis span {
    background: transparent;
    color: #999;
    min-width: 30px;
    padding: 0;
}

/* Previous/Next buttons */
nav.pagination ul.page li:first-child a,
nav.pagination ul.page li:last-child a {
    background: #1e293b;
    color: #fff;
}

nav.pagination ul.page li:first-child a:hover,
nav.pagination ul.page li:last-child a:hover {
    background: linear-gradient(135deg, #ff5722 0%, #ff8a50 100%);
}

/* Mobile Responsive Pagination */
@media (max-width: 768px) {
    nav.pagination {
        padding: 15px 5px;
        margin: 20px 0;
    }
    
    nav.pagination ul.page {
        padding: 8px 12px;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 25px;
    }
    
    nav.pagination ul.page li a,
    nav.pagination ul.page li span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
        border-radius: 18px;
    }
    
    nav.pagination ul.page li.ellipsis span {
        min-width: 24px;
    }
}
