/*
Script Name: MusicStore
Description: Music Affiliate Script - MODERN APP REDESIGN
Version: 3.0                                    
  
*/

/*------------------ Global & Body -----------------------*/
body {
    background-color: #f4f5f8; /* Soft light gray for depth */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
a { color: #212121; text-decoration: none; transition: color 0.2s ease-in-out; }
a:hover, a:focus { color: #6366f1; text-decoration: none; }
b, strong { font-weight: 600; }
.btn { font-weight: 500; border-radius: 50px; text-transform: uppercase; font-size: 13px; letter-spacing: 0.5px; transition: all 0.3s ease; }

/*------------------ Header -----------------------*/
.navbar { box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: none; }
.navbar-brand { padding: 13px 5px 13px 15px; font-weight: bold; letter-spacing: -0.5px; }
@media (max-width: 1199px) {
  .navbar .navbar-brand { height: 60px; padding: 13px 5px 13px 15px; }
}
.navbar-toggle { margin-top: 14px; border-radius: 8px; }
.drop-row { width: 150px; display: inline-block; margin: 0px; padding: 0px; vertical-align: top; }
.dropdown-menu { min-width: 450px; border-radius: 12px; border: none; box-shadow: 0 10px 30px rgba(0,0,0,0.1); padding: 10px; }
@media (max-width: 767px) {
    .dropdown-menu { min-width: 180px; }
    .drop-row { width: 100%; }
}
.navbar .dropdown-menu li > a, .navbar.navbar-default .dropdown-menu li > a {
    font-size: 14px; padding: 8px 16px; display: block; color: #4b5563; font-weight: 500; border-radius: 6px; transition: all 0.2s;
}
.navbar .dropdown-menu li > a:hover { background-color: #f3f4f6; color: #6366f1; }

/* Modern Search Button */
.searchbut {
    display: inline-block; padding: 6px 15px; margin-top: 6px; margin-bottom: -2px;
    color: #ffffff; background: linear-gradient(135deg, #6366f1, #a855f7);
    font-size: 14px; font-weight: 600; text-align: center; vertical-align: middle;
    cursor: pointer; border: none; border-radius: 50px; white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}
.searchbut:hover { color: #ffffff; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4); }
.searchbut i { font-size: 20px; vertical-align: middle; line-height: 1; }
.navbar .fakeinput { width: 65px; }

/*------------------ Home Page -----------------------*/
.scrollcontent{ position: relative; z-index: 1; padding-top: 15px; }
.scrollback { height: 340px; display: block; position: relative; }
.scrolltitle, .pagetitle, .postmaintitle { 
    position: relative; margin-bottom: 20px; border-bottom: 2px solid #e5e7eb; 
}
.scrolltitle h1, .pagetitle h1, .postmaintitle h3 { 
    color: #111827; display: inline-block; border-bottom: 3px solid #6366f1; 
    margin-bottom: -2px; line-height: 1.4; font-size: 24px; font-weight: 700; 
    padding-bottom: 8px; letter-spacing: -0.5px;
}

/* Thumbnails & Images (Modern Rounded App Look) */
.homethumb { margin-right: 15px; float: left; overflow: hidden; border-radius: 14px; }
.homethumb .overlay { 
    position: absolute; left: 0px; width: 200px; height: 200px; 
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    opacity: 0; visibility: hidden; transition: all 0.3s ease; border-radius: 14px;
}
.homethumb:hover .overlay { cursor: pointer; visibility: visible; opacity: 1; }
.homethumb .overlay p { font-size: 14px; color: #fff; margin: 130px 10px 0px 10px; font-weight: 500; text-align: center; }
.homethumb i { color: #fff; font-size: 42px; position: absolute; width: 100%; text-align: center; top: 40%; transform: translateY(-50%); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

/* Top Charts / Boxes */
.box1 { margin-right: 10px; }
.box2 { margin-right: 5px; margin-left: 5px; }
.box3 { margin-left: 10px; }
@media (max-width: 1199px) { .box1, .box2, .box3 { margin: 5px 0px 10px 0px; } }

.topbox { 
    background: #ffffff; padding: 15px; border-radius: 16px; 
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
    border: 1px solid #f3f4f6;
}
.topbox h2 { 
    margin-top: 5px; margin-bottom: 15px; font-size: 20px; font-weight: 700; 
    color: #111827; padding-bottom: 10px;
}
.topbox .topboxitem { width: 100%; padding: 8px 0px; display: inline-block; border-bottom: 1px solid #f3f4f6; transition: background 0.2s ease; border-radius: 8px; }
.topbox .topboxitem:hover { background-color: #f9fafb; }
.topbox .topboxitem:last-child { border-bottom: none; }
.topbox .topboxitem .topboximage img { float: left; margin-right: 12px; vertical-align: top; border-radius: 8px; width: 55px; height: 55px; object-fit: cover; }
.topbox .topboxitem .topboxtitle { font-size: 14px; color: #4b5563; line-height: 1.3; margin-top: 4px; }
.topbox .topboxitem .topboxtitle b { color: #111827; font-size: 15px; }

/* Modern Number Badges for Charts */
.rounded-list {
    background: #f3f4f6; color: #6b7280; border-radius: 12px;
    text-align: center; line-height: 55px; display: block; width: 55px; height: 55px;
    float: left; margin-right: 12px; margin-left: 5px; font-weight: bold;
    transition: all 0.3s ease;
}
.rounded-list a { cursor: default; text-align: center; line-height: 55px; font-size: 22px; color: inherit; }
.topbox .topboxitem .nr1 { background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff; box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3); }
.topbox .topboxitem .nr2 { background: #8b5cf6; color: #fff; }
.topbox .topboxitem .nr3 { background: #a855f7; color: #fff; }

/*------------------ Item Grids -----------------------*/
.pagetopbox { padding: 25px 0px 0px 0px; }
.pagebottombox { padding: 15px 0px 25px 0px; }

.page-itemlist, .page-item1list { list-style: none; margin: 0px; position: relative; padding: 0px; }
.page-item, .page-item1 { width: 180px; float: left; margin: 15px 40px 30px 0px; transition: transform 0.3s ease; }
.page-item:hover, .page-item1:hover { transform: translateY(-5px); }

/* Replace your existing .page-itemlist and .page-item styles with this */
.page-itemlist {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0 -15px; /* Adjust spacing */
    padding: 0;
    list-style: none;
}

.page-item, .page-item1 {
    width: 200px;
    margin: 15px; /* Uniform margin for all sides */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-item:hover, .page-item1:hover { transform: translateY(-5px); }

/* Ensure images have fixed aspect ratios */
.pagethumb, .pagethumb1 { height: 200px; overflow: hidden; border-radius: 14px; }
.page-item img, .page-item1 img { 
    width: 200px; height: 200px; border-radius: 14px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); object-fit: cover; 
}

/* This is the key: Force the info block to stay aligned */
.page-item .info, .page-item1 .info { 
    margin-top: 10px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column;
}

.page-item h3 { font-weight: 600; color: #111827; margin-bottom: 2px; height: 1.2em; overflow: hidden; }
.page-item h4 { font-weight: 400; color: #6b7280; font-size: 13px; height: 1.2em; overflow: hidden; }

/* Back to top button */
#back-top { position: fixed; bottom: 20px; right: 20px; z-index: 99; }
#back-top a {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease; border-radius: 50%; width: 50px; height: 50px;
}
#back-top a:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6); }
#back-top i { color: #fff; font-size: 32px; }

/*------------------ Music Pages (Single View) -----------------------*/
@media (max-width: 1199px) { .col-md-8 { padding-right: 0px; } .col-md-4 { padding-left: 0px; } }

.postmain { 
    padding: 20px; margin-bottom: 25px; background-color: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); border: 1px solid #f3f4f6;
}
.headpageimage { float: left; padding: 10px 25px 20px 0px; }
.headpageimage img { border-radius: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.headpageinfo { float: left; max-width: 480px; padding-top: 10px; }
.product-title { font-size: 26px; font-weight: 700; margin-bottom: 5px; margin-top: 0px; color: #111827; letter-spacing: -0.5px; }
.product-stock { color: #6366f1; font-size: 18px; font-weight: 600; margin-top: 0px; margin-bottom: 15px; }
.headpageinfo ul li { margin-bottom: 5px; color: #4b5563; font-size: 14px; }
.headpageinfo ul li b { color: #111827; font-weight: 600; }

.postactions { clear: both; padding-top: 20px; margin-top: 10px; margin-bottom: 10px; border-top: 1px solid #f3f4f6; }
.postactions .btn { padding: 10px 24px; font-weight: 600; }
.postactions .btn-warning { background: linear-gradient(135deg, #f43f5e, #ec4899); border: none; box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3); color: #fff; }
.postactions .btn-warning:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4); color: #fff; }

/* Tables (Tracklists) */
.table > tbody > tr > td, .table > tbody > tr > th, .table > thead > tr > th {
    padding: 12px 8px; vertical-align: middle; border-top: 1px solid #f3f4f6; color: #4b5563;
}
.table > thead > tr > th { font-weight: 600; color: #111827; border-bottom: 2px solid #e5e7eb !important; text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; }
.table-hover > tbody > tr:hover { background-color: #f9fafb; }

/* Tabs */
.nav-tabs { border-bottom: 2px solid #f3f4f6; background: transparent; }
.nav-tabs > li > a { border: none; color: #6b7280; font-weight: 600; border-radius: 8px 8px 0 0; }
.nav-tabs > li > a:hover { background: #f9fafb; color: #111827; border: none; }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
    color: #6366f1 !important; cursor: default; background-color: transparent !important;
    border: none; border-bottom: 3px solid #6366f1; margin-bottom: -2px;
}
.tab-content { padding: 20px 0; }

/* Related Items (Videos/Albums) */
.post-itemlist { list-style: none; margin: 0px; position: relative; padding: 0px; }
.post-item { width: 100px; float: left; margin: 0px 20px 30px 0px; transition: transform 0.2s ease; }
.post-item:hover { transform: translateY(-4px); }
.post-item img { width: 100px; height: 100px; background: #ffffff; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.06); object-fit: cover; }
.post-item .info { margin-top: 10px; }
.post-item h3, .post-item h4 { position: relative; display: block; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.post-item h3 { font-weight: 600; font-size: 13px; line-height: 1.2; color: #111827; margin-bottom: 2px; }
.post-item h4 { font-weight: 400; font-size: 12px; color: #6b7280; }
.post-item:nth-child(6n) { margin: 0px 0px 30px 0px; }

/* Reviews */
#reviews li { margin-bottom: 20px; border-bottom: 1px solid #f3f4f6; padding-bottom: 20px; }
#reviews li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
#reviews li .tit { font-weight: 600; font-size: 16px; margin-bottom: 5px; color: #111827; }
#reviews li .auth { margin-bottom: 10px; font-size: 13px; color: #6b7280; font-weight: 500; }
#reviews li .cont { color: #4b5563; line-height: 1.5; }
.starbox { margin: 8px 0px; }
span.stars, span.stars span { display: block; background: url(images/stars.png) 0 -16px repeat-x; width: 80px; height: 16px; }
span.stars span { background-position: 0 0; }

/*------------------ Sidebar -----------------------*/
.post-sidebar { margin: 0px 0px 30px 10px; }
.post-sidebar-box { margin-top: 0px; margin-bottom: 30px; }
.post-sidebar-box h3 { font-size: 18px; font-weight: 700; border-bottom: 2px solid #e5e7eb; padding-bottom: 10px; margin-bottom: 20px; color: #111827; }
.side-itemlist { list-style: none; margin: 0px; position: relative; padding: 0px; }
.side-item { 
    margin: 0px 0px 15px 0px; background: #ffffff; border-radius: 12px; overflow: hidden; display: flex; align-items: center; padding: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); border: 1px solid #f3f4f6; transition: all 0.2s ease;
}
.side-item:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.08); transform: translateX(5px); }
.side-thumb { display: inline-block; width: 80px; height: 80px; flex-shrink: 0; }
.side-item img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; }
.side-item .info { margin-left: 12px; display: flex; flex-direction: column; justify-content: center; width: calc(100% - 92px); }
.side-item h3, .side-item h4 { position: relative; display: block; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.side-item h3 { font-weight: 600; font-size: 14px; color: #111827; margin-bottom: 4px; }
.side-item h4 { font-weight: 400; font-size: 12px; color: #6b7280; }

/*------------------ Carousels -----------------------*/
.fcarousel .carousel-container { position: relative; margin: 10px 35px; }
.jcarousel { position: relative; overflow: hidden; border-radius: 14px; }
.jcarousel ul { width: 20000em; position: relative; list-style: none; margin: 0; padding: 0; }
.jcarousel li { 
    float: left; width: 200px; height: 200px; border: none; margin: 7px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); background: #fff; border-radius: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; overflow: hidden; position: relative;
}
.jcarousel li:hover { transform: translateY(-5px); box-shadow: 0 12px 20px rgba(99, 102, 241, 0.15); }

/* Custom Sleek Carousel Controls */
.fcarousel .carousel-prev, .fcarousel .carousel-next {
    display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0;
    cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    transition: all 0.2s ease; border-radius: 50%; background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.fcarousel .carousel-prev { background: #3e35396b url(images/scroll-left.png) no-repeat center center; left: -20px; }
.fcarousel .carousel-next { background: #3e35396b url(images/scroll-right.png) no-repeat center center; right: -20px; }
.fcarousel .carousel-prev:hover, .fcarousel .carousel-next:hover {
    background-color: #6366f1; box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/*------------------ Footer -----------------------*/
body > footer { background: #111827; padding-top: 25px; padding-bottom: 25px; font-size: 13px; color: #9ca3af; margin-top: 40px; width: 100%; clear: both; border-top: 4px solid #6366f1; }
body > footer .footcontent { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; }
body > footer .footcontent .pull-left b { color: #fff; font-weight: 600; font-size: 15px; letter-spacing: 0.5px; }
body > footer .footcontent a { color: #d1d5db; transition: color 0.2s; }
body > footer .footcontent a:hover { color: #6366f1; }
body > footer .footsep { margin: 0 12px; border-left: 1px solid #374151; }

@media (max-width: 767px) {
    body > footer .footcontent { flex-direction: column; text-align: center; gap: 15px; }
    body > footer .pull-right { float: none !important; }
}