/**
 * name : default.css
 */

@font-face {
    font-family: 'FontAwesome';
    src: url('./fonts/fontawesome-webfont.eot?v=4.3.0');
    src: url('./fonts/fontawesome-webfont.eot?#iefix&v=4.3.0') format('embedded-opentype'), url('./fonts/fontawesome-webfont.woff2?v=4.3.0') format('woff2'), url('./fonts/fontawesome-webfont.woff?v=4.3.0') format('woff'), url('./fonts/fontawesome-webfont.ttf?v=4.3.0') format('truetype'), url('./fonts/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular') format('svg');
    font-weight: normal;
    font-style: normal;
}
.awsome {
    color:#3e4682;
    display:inline-block;
    font-family:FontAwesome;
    font-size:1.2rem;
    height:25px;
    line-height:25px;
    margin:0;
}
.awsome-hide {
    display:none;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1a365d;
    --accent:  #d4af37;
    --bg:      #faf8f3;
    --text:    #2d3748;
    --vague:   #576a72;
    --light:   #e2e8f0;
    --shadow:  rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ── HEADER ── */
header {
    background: var(--primary);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.logo {
    font-size: 1.5rem; font-weight: bold;
    color: white; text-decoration: none; cursor: pointer;
    display: flex; align-items: center; gap: 0.5rem;
}
.logo .logo-icon { font-size: 2rem; }
.logo .logo-text { color: var(--accent); }
nav ul { display: flex; list-style: none; gap: 2rem; flex-wrap: wrap; }
nav a { color: white; text-decoration: none; transition: color 0.3s; font-weight: 500; cursor: pointer; }
nav a:hover { color: var(--accent); }

/* ── HERO ── */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2d4a7c 100%);
    color: white; padding: 4rem 0; text-align: center;
}
.hero h1 {
    font-size: 2.5rem; margin-bottom: 1rem; font-weight: 700;
    animation: fadeInDown 0.8s ease;
}

.container > .container > p.ordinary,
.hero > .container > p {
    font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9;
    animation: fadeInUp 0.8s ease;
}

/* ── SEARCH BOX ── */
.search-box {
    max-width: 600px; margin: 0 auto;
    position: relative; animation: fadeIn 1s ease;
}
.search-type-toggle {
    display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 0.75rem;
}
.search-type-toggle label {
    display: flex; align-items: center; gap: 0.4rem;
    background: rgba(255,255,255,0.15); color: white;
    border: 1px solid rgba(255,255,255,0.3); border-radius: 50px;
    padding: 0.35rem 1rem; font-size: 0.85rem; font-weight: 500;
    cursor: pointer; transition: all 0.2s;
}
.search-type-toggle label:has(input:checked) {
    background: var(--accent); color: var(--primary);
    border-color: var(--accent); font-weight: 600;
}
.search-type-toggle input { display: none; }

.search-row { display: flex; gap: 0; position: relative; }
.search-row input {
    flex: 1; padding: 1rem 1.5rem; font-size: 1rem;
    border: none; border-radius: 50px 0 0 50px;
    box-shadow: 0 4px 15px var(--shadow); outline: none;
}
.search-row .search-btn {
    background: var(--accent); border: none;
    padding: 0.7rem 1.5rem; border-radius: 0 50px 50px 0;
    cursor: pointer; font-weight: 600; color: var(--primary);
    font-size: 0.95rem; transition: background 0.2s; white-space: nowrap;
}
.search-row .search-btn:hover { background: #e0c040; }

.composer-search-input {
    width: 100%; padding: 1rem 1.5rem; font-size: 1rem;
    border: none; border-radius: 50px;
    box-shadow: 0 4px 15px var(--shadow); outline: none;
}
.composer-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}
.composer-dropdown {
    position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0;
    background: white; border: 2px solid var(--primary); border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-height: 400px; overflow-y: auto; z-index: 1000; text-align: left;
}
.composer-dropdown::-webkit-scrollbar { width: 8px; }
.composer-dropdown::-webkit-scrollbar-track { background: var(--light); border-radius: 4px; }
.composer-dropdown::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
.composer-dropdown-item {
    padding: 0.75rem 1rem; cursor: pointer; transition: all 0.2s;
    border-bottom: 1px solid var(--light);
    display: flex; justify-content: space-between; align-items: center;
    color: var(--vague);
}
.composer-dropdown-item:last-child { border-bottom: none; }
.composer-dropdown-item:hover,
.composer-dropdown-item.highlighted { background: var(--light); color: var(--primary); }
.composer-dropdown-item span:first-child { font-weight: 600; color: inherit; }
.composer-dropdown-item span:last-child { font-size: 0.85rem; color: #718096; }
.dropdown-empty { padding: 1rem; color: #718096; text-align: center; }

/* ── STATS ── */
.stats { background: white; padding: 2rem 0; box-shadow: 0 2px 10px var(--shadow); }
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem; text-align: center;
}
.stat-item h3 { font-size: 2.5rem; color: var(--accent); margin-bottom: 0.5rem; }
.stat-item p { color: #718096; }

/* ── SECTION TITLE ── */
.section-title { font-size: 2rem; margin-bottom: 2rem; text-align: center; color: var(--primary); }

/* ── INSTRUMENTS ── */
.categories { padding: 3rem 0; }
.category-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem; margin-top: 2rem;
}
.category-card {
    background: white; padding: 2rem; border-radius: 12px; text-align: center;
    box-shadow: 0 2px 10px var(--shadow); transition: all 0.3s;
    cursor: pointer; color: var(--text);
}
.category-card:hover { transform: translateY(-5px); box-shadow: 0 6px 25px var(--shadow); }
.category-card.active { background: var(--primary); color: white; }
.category-icon { font-size: 3rem; margin-bottom: 1rem; transition: transform 0.3s; }
.category-card:hover .category-icon { transform: scale(1.1) rotate(5deg); }
.category-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.category-card p { color: #718096; font-size: 0.9rem; }
.category-card.active p { color: rgba(255,255,255,0.8); }

/* ── COMPOSERS ── */
.composers { background: white; padding: 3rem 0; margin: 3rem 0; }
.composer-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem; margin-top: 2rem;
}
.composer-card {
    text-align: center; padding: 1.5rem; border-radius: 12px;
    background: var(--bg); transition: all 0.3s; cursor: pointer;
}
.composer-card:hover { background: var(--light); transform: translateY(-3px); }
.composer-card.active { background: var(--primary); color: white; }
.composer-avatar {
    width: 80px; height: 80px; background: var(--primary); border-radius: 50%;
    margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: white; font-weight: bold; transition: all 0.3s;
}
.composer-card.active .composer-avatar { background: white; color: var(--primary); }
.composer-card h4 { font-size: 1rem; color: var(--primary); margin-bottom: 0.25rem; }
.composer-card.active h4 { color: white; }
.composer-card p { font-size: 0.85rem; color: #718096; }
.composer-card.active p { color: rgba(255,255,255,0.8); }

/* ── POPULAR ── */
.popular-section { padding: 3rem 0; }

/* ── MUSIC GRID ── */
.music-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem; padding: 2rem 0 3rem;
}
.music-card {
    background: white; border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow); transition: all 0.3s;
    cursor: pointer; animation: fadeInUp 0.5s ease;
}
.music-card:hover { transform: translateY(-5px); box-shadow: 0 6px 25px var(--shadow); }
.music-preview {
    height: 300px;
    background: linear-gradient(135deg, var(--light) 0%, #cbd5e0 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: var(--primary); position: relative; overflow: hidden;
}
.music-preview::before {
    content: '♪ ♫ ♪'; position: absolute; font-size: 6rem;
    opacity: 0.1; animation: float 6s ease-in-out infinite; z-index: 10;
}
.music-preview img { z-index: 100; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.music-info { padding: 1.5rem; }
.music-info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--primary); }
.music-meta { display: flex; gap: 1rem; margin: 0.5rem 0; font-size: 0.85rem; color: #718096; }
.badge {
    display: inline-block; padding: 0.25rem 0.75rem;
    background: var(--accent); color: white; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600; margin-top: 0.5rem;
}
.badge.exclusive { background: #e53e3e; }
.badge.rare { background: #9f7aea; }
.download-btn {
    display: block; width: 100%; padding: 0.75rem; margin-top: 1rem;
    background: var(--primary); color: white; text-align: center;
    text-decoration: none; border-radius: 8px; font-weight: 600;
    transition: all 0.3s; border: none; cursor: pointer;
}
.download-btn:hover { background: #2d4a7c; transform: scale(1.02); }
.mp3, .midi { font-size: 0.85rem; color: var(--vague); cursor: pointer; margin: 0.3rem 0; display: block; }
.mp3:hover, .midi:hover { color: var(--primary); }

/* ── BREADCRUMB ── */
.breadcrumb {
    padding: 2rem 0 1rem; display: flex; align-items: center; gap: 0.5rem; color: #718096;
}
.breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); }

/* ── FILTER ── */
.instrument-filter { padding: 1.5rem 0; }
.instrument-filter > div { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.instrument-filter label { font-weight: 600; color: var(--primary); }
.instrument-filter-select {
    padding: 0.5rem 1rem; border: 2px solid var(--primary);
    border-radius: 8px; font-weight: 500; background: white;
    cursor: pointer; color: var(--text);
}
.instrument-filter-select:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

/* ── LOADING / EMPTY ── */
.loading { text-align: center; padding: 3rem; font-size: 1.2rem; color: #718096; }
.loading::after { content: '...'; animation: dots 1.5s steps(4, end) infinite; }
@keyframes dots {
    0%,20%   { content: '.'; }
    40%      { content: '..'; }
    60%,100% { content: '...'; }
}
.empty-state { text-align: center; padding: 4rem 2rem; color: #718096; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary); }

/* ── PAGINATION ── */
.pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 2rem; padding: 3rem 0; margin-top: 2rem;
}
.pagination-btn {
    padding: 0.75rem 1.5rem; background: var(--primary); color: white;
    border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s;
}
.pagination-btn:hover:not(:disabled) { background: #2d4a7c; transform: translateY(-2px); }
.pagination-btn:disabled { background: #cbd5e0; cursor: not-allowed; opacity: 0.5; }
.pagination-info { color: var(--text); font-weight: 500; }
.page-select {
    padding: 0.5rem 0.75rem; border: 2px solid var(--primary); border-radius: 4px;
    font-weight: 600; font-size: 1rem; background: white; color: var(--primary);
    cursor: pointer; margin: 0 0.5rem; transition: all 0.3s;
}
.page-select:hover { border-color: var(--accent); }
.page-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,175,55,0.1); }

/* ── NOTIFICATION ── */
.notification {
    position: fixed; bottom: 2rem; right: 2rem;
    background: var(--primary); color: white;
    padding: 1rem 1.5rem; border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow);
    animation: slideIn 0.3s ease; z-index: 1000;
}

/* ── FOOTER ── */
footer { background: var(--primary); color: white; padding: 3rem 0 1rem; margin-top: 4rem; }
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem; margin-bottom: 2rem;
}
.footer-section h4 { color: var(--accent); margin-bottom: 1rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section a { color: white; text-decoration: none; opacity: 0.8; transition: all 0.3s; }
.footer-section a:hover { opacity: 1; color: var(--accent); padding-left: 5px; }
.footer-bottom {
    text-align: center; padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1); opacity: 0.7;
}

/* ── PREVIEW OVERLAY ── */
div#xmdiv {
    background-color: rgb(215,215,215); border: 1px solid #000;
    position: fixed; height: auto; left: 50%;
    min-height: 300px; max-height: 600px; min-width: 400px;
    overflow-y: auto; overflow-x: hidden; top: 120px;
    animation: slideIn 0.3s ease; z-index: 500;
}
img#xmimg {
    border: none; margin: 10px auto; cursor: pointer;
    height: 150px; left: 50%; margin-left: -75px; margin-top: -75px; top: 50%;
    width: 150px;
}

/* ── ANIMATIONS ── */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(20px);  } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }
@keyframes float      { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes slideIn    { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    nav ul { gap: 1rem; font-size: 0.9rem; }
    .category-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .stat-item h3 { font-size: 2rem; }
    .composer-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}
