/**
 * Hauptstilblatt für Musiqi Təması
 */

/* --------- Variablen --------- */
:root {
    --primary-color: #4285f4;
    --secondary-color: #333;
    --text-color: #444;
    --light-bg: #f9f9f9;
    --border-color: #ddd;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --error-color: #f44336;
}

/* --------- Reset & Basics --------- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    text-rendering: optimizeSpeed;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"] {
    will-change: transform;
}

/* --------- Typografie --------- */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.3;
    color: var(--secondary-color);
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* --------- Header --------- */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: relative;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.site-branding {
    margin-right: 20px;
    flex: 1;
    max-width: 25%;
}

.site-title {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

.site-title a {
    color: var(--secondary-color);
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: #777;
}

.header-right {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 25%;
    justify-content: flex-end;
}

/* Zentrales Suchfeld */
.header-search-area {
    flex: 2;
    max-width: 50%;
    padding: 0 20px;
    position: relative;
}

.search-form {
    margin: 0 auto;
    display: flex;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.search-field {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
}

.search-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* --------- Ajax Search --------- */
.search-container {
    position: relative;
    display: flex;
    background-color: white;
    border-radius: 30px;
    padding: 5px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.search-button {
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-button:hover {
    background-color: #3367d6;
}

.search-button i {
    margin-right: 5px;
    font-size: 1.1em;
}

.ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 200;
    margin-top: 10px;
    max-height: 450px;
    overflow-y: auto;
    display: none;
    padding: 8px;
    border: 1px solid rgba(66, 133, 244, 0.2);
    width: 100%;
    max-width: 500px;
    left: 50%;
    transform: translateX(-50%);
}

.result-category-header {
    padding: 8px 12px;
    background-color: #f5f5f5;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 5px;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    transition: background-color 0.2s;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 10px;
    margin-bottom: 4px;
    border-left: 3px solid transparent;
}

.result-item:hover {
    background-color: rgba(66, 133, 244, 0.08);
    border-left-color: #4285f4;
    transform: translateX(3px);
    text-decoration: none;
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: #666;
    font-size: 16px;
}

.result-title {
    flex-grow: 1;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    font-size: 0.95rem;
}

.result-artist, .result-count {
    font-size: 0.8rem;
    color: #4285f4;
    font-weight: 500;
    margin-left: 10px;
}

.search-loading {
    padding: 15px;
    text-align: center;
    color: #777;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #777;
}

.error {
    padding: 15px;
    text-align: center;
    color: var(--error-color);
}

/* Anpassung für den Header */
.header-right .search-form {
    margin-right: 20px;
}

@media (max-width: 992px) {
    .site-header {
        padding: 15px 0;
    }
    
    .header-container {
        flex-direction: column;
    }
    
    .site-branding {
        max-width: none;
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .site-branding .custom-logo {
        max-height: 50px;
    }
    
    .header-search-area {
        max-width: none;
        width: 100%;
        padding: 0;
        margin-bottom: 10px;
    }
    
    .header-right {
        max-width: none;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 10px 0;
    }
    
    .site-branding {
        margin-bottom: 8px;
    }
    
    .site-branding .custom-logo {
        max-height: 40px;
    }
    
    .header-search-area {
        margin-bottom: 8px;
    }
    
    .search-container {
        padding: 4px;
    }
    
    .search-button-text {
        display: none;
    }
    
    .search-button i {
        margin-right: 0;
    }
    
    .search-input {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .search-button {
        padding: 8px 12px;
    }
    
    .footer-widgets {
        flex-direction: column;
    }
    
    .footer-widget {
        max-width: 100%;
        margin-bottom: 25px;
    }
}

@media (max-width: 576px) {
    .site-header {
        padding: 8px 0;
    }
    
    .site-branding {
        margin-bottom: 6px;
    }
    
    .site-branding .custom-logo {
        max-height: 35px;
    }
    
    .header-search-area {
        margin-bottom: 6px;
    }
    
    .search-container {
        padding: 3px;
        flex-direction: row;
    }
    
    .search-input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .search-button {
        padding: 6px 10px;
        border-radius: 20px;
    }
    
    .ajax-search-results {
        max-height: 300px;
        left: 0;
        right: 0;
        transform: none;
        max-width: none;
        width: 100%;
    }
}

/* Ergebnisse besser lesbar machen */
.result-item {
    padding: 10px;
}

.result-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
    margin-right: 8px;
}

.result-title {
    font-size: 0.9rem;
}

.result-artist, .result-count {
    display: none;
}

/* --------- Navigation --------- */
.main-navigation {
    font-size: 0.95rem;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-left: 20px;
    position: relative;
}

.main-navigation a {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 5px 0;
}

.main-navigation a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.menu-icon {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--secondary-color);
    position: relative;
}

.menu-icon:before,
.menu-icon:after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--secondary-color);
    position: absolute;
    left: 0;
}

.menu-icon:before {
    top: -6px;
}

.menu-icon:after {
    bottom: -6px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 100;
        flex-direction: column;
        padding: 10px 0;
    }
    
    .main-navigation ul.active {
        display: flex;
    }
    
    .main-navigation li {
        margin: 0;
        text-align: center;
    }
    
    .main-navigation a {
        padding: 8px 15px;
    }
}

/* --------- Content Area --------- */
.content-container {
    display: flex;
    flex-wrap: wrap;
    padding: 30px 20px;
}

.content-area {
    flex: 1;
    min-width: 0;
    padding-right: 30px;
}

.widget-area {
    width: 300px;
}

.hentry {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.entry-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.entry-meta {
    color: #777;
    font-size: 0.875rem;
    margin-bottom: 15px;
}

.entry-footer {
    margin-top: 20px;
    color: #777;
    font-size: 0.875rem;
}

/* --------- Sidebar & Widgets --------- */
.widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 15px;
}

.widget ul {
    padding-left: 20px;
    margin: 0;
}

.widget li {
    margin-bottom: 8px;
}

/* --------- Footer --------- */
.site-footer {
    background-color: #1f1f1f;
    color: #fff;
    padding: 30px 0 20px;
    margin-top: 40px;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.footer-widget {
    flex: 1;
    padding: 0 15px;
    min-width: 200px;
    max-width: calc(33.333% - 30px);
}

.footer-widget h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    margin-bottom: 8px;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget a:hover {
    color: #fff;
}

.site-info {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.site-info a {
    color: rgba(255, 255, 255, 0.9);
}

.site-info a:hover {
    color: #fff;
}

/* --------- Utilility --------- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.desktop-only {
    display: block;
}

@media (max-width: 992px) {
    .desktop-only {
        display: none;
    }
}

/* ========================================
   MODERN HERO SECTION
   ======================================== */

.mm-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 80px 20px;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.mm-hero__bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-size: 400px;
    background-position: center;
    pointer-events: none;
}

.mm-hero__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.mm-hero__content {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
}

/* Left Side - Main Content */
.mm-hero__main {
    color: #ffffff;
}

.mm-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mm-hero__badge-icon {
    font-size: 1.2em;
    color: #1DB954;
}

.mm-hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
}

.mm-hero__title-accent {
    display: block;
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mm-hero__description {
    font-size: 1.125rem;
    line-height: 1.7;
    margin: 0 0 32px 0;
    opacity: 0.95;
    max-width: 540px;
}

/* Statistics */
.mm-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.mm-hero__stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.mm-hero__stat:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.mm-hero__stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.mm-hero__stat-content {
    flex: 1;
}

.mm-hero__stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.mm-hero__stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Action Buttons */
.mm-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.mm-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.mm-hero__btn--primary {
    background: #ffffff;
    color: #667eea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mm-hero__btn--primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.mm-hero__btn--secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.mm-hero__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Right Side - Featured Artist Card */
.mm-hero__featured {
    position: relative;
}

.mm-hero__card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mm-hero__card-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.mm-hero__card-inner {
    position: relative;
    z-index: 1;
}

.mm-hero__artist-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.mm-hero__artist-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
}

.mm-hero__artist-info {
    padding: 24px;
    color: #ffffff;
}

.mm-hero__artist-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 8px;
    font-weight: 600;
}

.mm-hero__artist-label .dashicons {
    color: #ffd700;
}

.mm-hero__artist-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.mm-hero__artist-count {
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 0 0 16px 0;
}

.mm-hero__artist-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mm-hero__artist-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .mm-hero {
        padding: 60px 20px;
        min-height: auto;
    }

    .mm-hero__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mm-hero__title {
        font-size: 2.5rem;
    }

    .mm-hero__stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mm-hero {
        padding: 40px 16px;
    }

    .mm-hero__title {
        font-size: 2rem;
    }

    .mm-hero__description {
        font-size: 1rem;
    }

    .mm-hero__stats {
        gap: 12px;
    }

    .mm-hero__stat {
        padding: 12px;
    }

    .mm-hero__stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .mm-hero__stat-value {
        font-size: 1.5rem;
    }

    .mm-hero__stat-label {
        font-size: 0.8rem;
    }

    .mm-hero__actions {
        flex-direction: column;
    }

    .mm-hero__btn {
        width: 100%;
        justify-content: center;
    }

    .mm-hero__artist-image {
        height: 220px;
    }

    .mm-hero__artist-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .mm-hero__stats {
        grid-template-columns: 1fr;
    }

    .mm-hero__title {
        font-size: 1.75rem;
    }
} 