/* ── app-main.css ─ TrendyBeatz v2 main application styles ──────── */

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html  { font-family: "Lucida Sans", Arial, Helvetica, sans-serif; }
body  { background-color: #1a1a1a; margin: 0; font-size: 16px; }
img   { max-width: 100%; height: auto; }
video { width: 100%; height: auto; }
a     { text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Grid / column system ── */
.row::after { content: ""; clear: both; display: table; }
[class*="col-"] { float: left; padding: 5px; width: 100%; }

@media only screen and (min-width: 768px) {
    .col-1  { width: 8.33%;  }
    .col-2  { width: 16.66%; }
    .col-3  { width: 25%;    }
    .col-4  { width: 33.33%; }
    .col-5  { width: 41.66%; }
    .col-6  { width: 50%;    }
    .col-7  { width: 58.33%; }
    .col-8  { width: 66.66%; }
    .col-9  { width: 75%;    }
    .col-10 { width: 83.33%; }
    .col-11 { width: 91.66%; }
    .col-12 { width: 100%;   }
}

/* Shorthand col-s-* forces full-width on small screens (<768) */
@media only screen and (max-width: 767px) {
    [class*="col-s-12"] { width: 100%; float: none; }
}

/* ── Header ── */
.header {
    background-color: #ffffff;
    color: #ffffff;
    padding: 20px 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}
.header img { display: block; }

/* ── Main content area ── */
.main {
    background-color: #ffffff;
    padding: 10px;
    text-align: left;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    min-height: 500px;
}

/* ── Sidebar ── */
.aside {
    background-color: #ffffff;
    padding: 10px;
    color: #000000;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

/* ── Footer ── */
.footer {
    background-color: #4682B4;
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    padding: 5px 30px;
    clear: both;
}
.footer a          { color: #ffffff; text-decoration: none; }
.footer a:hover    { text-decoration: underline; }
.footer a.active   { color: #ffffff; }
.footer a:visited  { color: #ffffff; }

/* ── Navigation ── */
#topnav { background-color: #000; width: 100%; }

/* ── Social icon circles ── */
.fa-facebook { background: #3B5998; color: white; padding: 12px; margin: 4px 2px; border-radius: 50%; }
.fa-twitter  { background: #55ACEE; color: white; padding: 12px; margin: 4px 2px; border-radius: 50%; }
.fa-youtube  { background: #bb0000; color: white; padding: 12px; margin: 4px 2px; border-radius: 50%; }
.fa-pinterest{ background: #cb2027; color: white; padding: 12px; margin: 4px 2px; border-radius: 50%; }
.fa-whatsapp { background: #25d366; color: white; padding: 12px; margin: 4px 2px; border-radius: 50%; }
.fa-instagram{ background: #e4405f; color: white; padding: 12px; margin: 4px 2px; border-radius: 50%; }

/* ── Song / Music card ── */
.music-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    padding: 10px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: box-shadow 0.2s;
}
.music-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.music-card img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.music-card-body { flex: 1 1 auto; min-width: 0; }
.music-card-body h3 {
    font-size: 16px;
    margin: 0 0 4px;
    color: #111;
    font-family: georgia, garamond, serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.music-card-body p  { font-size: 13px; margin: 0 0 4px; color: #555; }
.music-card-body .badge {
    font-size: 11px;
    background: green;
    color: #fff;
    border-radius: 3px;
    padding: 2px 6px;
    display: inline-block;
}

/* ── Album card grid ── */
.album-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.album-item {
    flex: 0 0 calc(25% - 9px);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    text-align: center;
}
.album-item:hover { transform: translateY(-4px); }
.album-item img   { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.album-item-title { font-size: 13px; padding: 6px; color: #222; font-weight: 600; }

@media (max-width: 768px) {
    .album-item { flex: 0 0 calc(50% - 6px); }
}
@media (max-width: 480px) {
    .album-item { flex: 0 0 100%; }
}

/* ── Artist card ── */
.artist-card {
    display: inline-block;
    text-align: center;
    width: calc(25% - 10px);
    margin: 5px;
    vertical-align: top;
}
.artist-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid green;
}
.artist-card p {
    font-size: 12px;
    margin: 4px 0 0;
    color: #333;
    font-family: Copperplate, 'Copperplate Gothic Bold', serif;
}

@media (max-width: 600px) {
    .artist-card { width: calc(33.33% - 10px); }
}

/* ── Generic button ── */
.btn {
    display: inline-block;
    background-color: #4682B4;
    color: white;
    font-size: 14px;
    border-radius: 6px;
    padding: 8px 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.btn:hover { background-color: #2a5c8a; color: #fff; text-decoration: none; }
.btn-green  { background-color: green; }
.btn-green:hover { background-color: #005500; }
.btn-red    { background-color: #d9534f; }
.btn-red:hover { background-color: #b52b27; }

/* ── Download button ── */
.btn-download {
    display: block;
    background: green;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
    transition: background 0.2s;
    text-decoration: none;
}
.btn-download:hover { background: #005500; color: #fff; text-decoration: none; }

/* ── Section headings ── */
.section-heading {
    font-family: georgia, garamond, serif;
    font-size: 22px;
    color: #4b2e05;
    border-bottom: 3px solid green;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

/* ── Pagination — inline styles in blade views handle all visual styling ── */
.pagination { display:flex; flex-wrap:wrap; gap:4px; margin:12px 0; justify-content:center; list-style:none; padding:0; }
.pagination a { float:none !important; text-decoration:none; }
.pagination li { display:inline-block; }

/* ── Tag / genre pills ── */
.pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: #eee;
    font-size: 12px;
    color: #333;
    margin: 2px;
    text-decoration: none;
}
.pill:hover { background: green; color: #fff; text-decoration: none; }
.pill-green { background: green; color: #fff; }

/* ── Ad slot ── */
.ad-slot { text-align: center; margin: 10px 0; overflow: hidden; min-height: 50px; }

/* ── Back-to-top button ── */
.gotop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 14px;
    border: none;
    outline: none;
    background-color: red;
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 4px;
    transition: background 0.2s;
}
.gotop:hover { background-color: #900; }

/* ── Toast / notification ── */
#toast {
    visibility: hidden;
    min-width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 12px;
    position: fixed;
    z-index: 9999;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
}
#toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 1.5s;
}
@keyframes fadein  { from { bottom: 40px; opacity: 0; } to { bottom: 60px; opacity: 1; } }
@keyframes fadeout { from { bottom: 60px; opacity: 1; } to { bottom: 40px; opacity: 0; } }

/* ── Audio player ── */
.audio-wrap { background: #f8f8f8; border: 1px solid #ddd; border-radius: 6px; padding: 12px; margin: 10px 0; }
.audio-wrap audio { width: 100%; margin-top: 6px; }

/* ── Table ── */
.tb { width: 100%; border-collapse: collapse; font-size: 14px; }
.tb th, .tb td { padding: 8px 10px; border-bottom: 1px solid #eee; text-align: left; }
.tb th { background: #f4f4f4; font-weight: bold; }
.tb tr:hover td { background: #f9f9f9; }

/* ── Utilities ── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.fw-bold { font-weight: bold; }
.text-green { color: green; }
.text-red   { color: red; }
.text-white { color: #fff; }
.bg-green   { background: green; }
.bg-black   { background: #000; }
.d-none     { display: none; }
.d-block    { display: block; }
.clearfix::after { content: ""; display: table; clear: both; }
