/*
Theme Name: Ritmeto
Theme URI: https://ritmeto.ir
Author: Your Name
Author URI: https://ritmeto.ir
Description: A modern music streaming WordPress theme
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ritmeto
*/

@font-face {
	font-family: YekanBakh;
	font-style: normal;
	font-weight: 100;
	font-stretch: normal;
	src: url('assets/fonts/woff/YekanBakhFaNum-Thin.woff') format('woff'),   
	url('assets/fonts/woff2/YekanBakhFaNum-Thin.woff2') format('woff2');		
}

@font-face {
	font-family: YekanBakh;
	font-style: normal;
	font-weight: 300;
	font-stretch: normal;
	src: url('assets/fonts/woff/YekanBakhFaNum-Light.woff') format('woff'),   
	url('assets/fonts/woff2/YekanBakhFaNum-Light.woff2') format('woff2');	
}

@font-face {
	font-family: YekanBakh;
	font-style: normal;
	font-weight: normal;
	font-stretch: normal;
	src: url('assets/fonts/woff/YekanBakhFaNum-Regular.woff') format('woff'),   
	url('assets/fonts/woff2/YekanBakhFaNum-Regular.woff2') format('woff2');		 
}

@font-face {
	font-family: YekanBakh;
	font-style: normal;
	font-weight: 600;
	font-stretch: normal;
	src: url('assets/fonts/woff/YekanBakhFaNum-SemiBold.woff') format('woff'),   
	url('assets/fonts/woff2/YekanBakhFaNum-SemiBold.woff2') format('woff2');		 
}

@font-face {
	font-family: YekanBakh;
	font-style: normal;
	font-weight: bold;
	font-stretch: normal;
	src: url('assets/fonts/woff/YekanBakhFaNum-Bold.woff') format('woff'),   
	url('assets/fonts/woff2/YekanBakhFaNum-Bold.woff2') format('woff2'); 
}

@font-face {
	font-family: YekanBakh;
	font-style: normal;
	font-weight: 800;
	font-stretch: normal;
	src: url('assets/fonts/woff/YekanBakhFaNum-ExtraBold.woff') format('woff'),   
	url('assets/fonts/woff2/YekanBakhFaNum-ExtraBold.woff2') format('woff2');		 
}

@font-face {
	font-family: YekanBakh;
	font-style: normal;
	font-weight: 900;
	font-stretch: normal;
	src: url('assets/fonts/woff/YekanBakhFaNum-Black.woff') format('woff'),   
	url('assets/fonts/woff2/YekanBakhFaNum-Black.woff2') format('woff2');		 
}

@font-face {
	font-family: YekanBakh;
	font-style: normal;
	font-weight: 950;
	font-stretch: normal;
	src: url('assets/fonts/woff/YekanBakhFaNum-ExtraBlack.woff') format('woff'),   
	url('assets/fonts/woff2/YekanBakhFaNum-ExtraBlack.woff2') format('woff2');		 
}

body {
    background-color: #000;
    color: white;
    font-family: 'YekanBakh', sans-serif;
}

/* Desktop Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 240px;
    height: 100vh;
    background-color: #18181D;
    padding: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.logo {
    width: 80%;
    margin: 1rem auto 2rem;
}

.nav-link {
    color: #b3b3b3;
    font-weight: 400;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: white;
}

.nav-link.active {
    color: white;
    font-weight: 600;
}

.nav-link i {
    margin-left: 0.75rem;
}



.main-content {
    margin-right: 240px;
    /* padding: 2rem; */
}

.card {
    background-color: transparent;
    border: none;
    transition: background-color 0.3s;
    position: relative;
    text-align: center;
}

.card:hover {
    background-color: transparent;
}

.card:hover .mix-card::after {
    background-color: rgba(0, 0, 0, 0.4);
}

.card:hover .play-button {
    opacity: 1;
}

.mix-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
}

.mix-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}


.mix-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-link {
    color: #b3b3b3;
    font-weight: 400;
}

.nav-link:hover {
    color: white;
}

.active {
    color: white;
    font-weight: 600;
}

.download-app {
    margin-top: auto;
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #282828;
}

.download-app a {
    color: #b3b3b3;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

.download-app a:hover {
    color: white;
}

.card-link {
    text-decoration: none;
    color: white;
    display: block;
}

.card-link:hover {
    color: white;
}

.card h6 {
    margin-top: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    /* Pure white to match */
}

.card:hover h6 {
    color: #FFA537;
    /* Slightly lighter shade on hover */
}


.card small {
    color: #b3b3b3;
    display: block;
}

.play-button-large {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: 48px;
    height: 48px;
    background-color: #FFA537;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    cursor: pointer;
    z-index: 3;
}

.play-button-large:hover {
    transform: scale(1.1) translateY(-8px);
    background-color: #FFA537;
}

.play-button-large i {
    color: black;
    font-size: 1.5rem;
    margin-left: 3px;
    line-height: 0;
}

.music-card {
    background-color: #181818;
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    transition: all 0.3s;
    height: 100%;
    text-align: center;
}

.music-card:hover {
    background-color: #282828;
}

.music-card:hover .play-button-large {
    opacity: 1;
    transform: translateY(-8px);
}

.music-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.music-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    /* Pure white for better contrast */
}

.music-artist {
    color: rgba(255, 255, 255, 0.7);
    /* Slightly transparent white for secondary text */
    font-size: 0.6rem;
}

.see-all-link {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #b3b3b3;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.see-all-link:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: scale(1.02);
}

.category-nav {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem;
}

.category-nav .nav-pills {
    gap: 1rem;
}

.category-nav .nav-pills .nav-link {
    color: rgba(255, 255, 255, 0.7);
    background-color: transparent;
    border-radius: 2rem;
    padding: 0.5rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-nav .nav-pills .nav-link:hover {
    color: white;
}

.category-nav .nav-pills .nav-link.active {
    background-color: #FFA537;
    color: #000;
}

.artists-grid section {
    /* padding-top: 2rem; */
    padding-bottom: 3rem;
    min-height: 400px;
}

.artist-header {
    position: relative;
    padding: 8rem 2rem 2rem;
    color: white;
}

.artist-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.artist-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    border-radius: 4px;
}

.artist-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, #1a1a1a, #000000);
}

.verified-badge {
    background-color: #FFA537;
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.artist-name {
    font-size: 5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.monthly-listeners {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: auto;
        background-color: #000;
        padding: 0.75rem 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        flex-direction: row;
        justify-content: center;
    }

    .logo {
        display: none;
    }

    .mobile-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin: 0 1rem;
    }

    .mobile-nav .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.25rem;
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.7);
    }

    .mobile-nav .nav-link i {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
        margin: 0 auto;
    }

    .mobile-nav .nav-link.active {
        color: #FFA537;
    }

    .download-app {
        display: none;
    }

    /* Adjust main content margin for mobile */
    .main-content {
        /* margin-right: 0;
        margin-top: 5rem; */
        /* padding: 1rem; */
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 4rem;
        padding-bottom: 1rem;
    }

    .category-nav .nav-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .category-nav .nav-pills::-webkit-scrollbar {
        display: none;
    }

}

/* Popular Tracks Section */
.popular-tracks, .related-songs {
    padding: 2rem;
    margin-bottom: 6rem;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.see-all-link {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #b3b3b3;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.see-all-link:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: scale(1.02);
}

/* Tracks Table */
.tracks-table {
    width: 100%;
}

.track-header {
    display: grid;
    grid-template-columns: 50px 1fr 150px 100px;
    padding: 0.5rem 1rem;
    color: #b3b3b3;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.track-item {
    display: grid;
    grid-template-columns: 50px 1fr 150px 100px;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    margin-bottom: 0.25rem;
}

.track-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.track-item.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.track-item.active .track-title {
    color: #FFA537;
}

/* Track Number Cell */
.track-number-cell {
    display: flex;
    align-items: center;
    width: 30px;
    position: relative;
}

.track-number {
    display: block;
    color: #b3b3b3;
}

.track-play-button {
    display: none;
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    position: absolute;
}

.track-play-button:hover,
.track-item.active .track-play-button {
    color: #FFA537;
}

.track-item:hover .track-number {
    display: none;
}

.track-item:hover .track-play-button,
.track-item.active .track-play-button {
    display: block;
    margin-right: -0.2rem;
}

.track-item.active .track-number {
    display: none;
}

/* Track Info */
.track-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.track-info img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* Track Text */
.track-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.track-title {
    color: white;
    font-weight: 500;
}

/* Track Stats */
.track-streams {
    color: #b3b3b3;
    text-align: right;
    font-size: 0.875rem;
}

.track-duration {
    color: #b3b3b3;
    text-align: left;
    font-size: 0.875rem;
}

/* Player Styles */
.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000;
    padding: 1rem 2rem;
    border-top: 1px solid #282828;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    margin-right: 240px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-direction: row-reverse;
    /* Flip controls for RTL */
}

.control-button {
    background: transparent;
    border: none;
    color: #b3b3b3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

.control-button:hover {
    color: white;
    transform: scale(1.1);
}

.control-button.play-button {
    background-color: white;
    border: none;
    color: black;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
}

.control-button.play-button i {
    display: flex;
    font-size: 1.5rem;
    color: #000;
}

.control-button.prev-button i,
.control-button.next-button i {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    
}

.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time {
    color: #b3b3b3;
    font-size: 0.75rem;
    min-width: 40px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background-color: #4f4f4f;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: #FFA537;
    border-radius: 2px;
    width: 0%;
}

.progress-bar:hover .progress {
    background-color: #1db954;
}

.control-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.control-button:disabled:hover {
    transform: none;
}

/* Explicit Badge */
.explicit-badge {
    background-color: rgba(255, 255, 255, 0.6);
    color: #121212;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .popular-tracks, .related-songs {
        padding: 1rem;
    }

    .track-header {
        grid-template-columns: 40px 1fr 80px;
    }

    .track-item {
        grid-template-columns: 40px 1fr 80px;
    }

    .track-streams {
        display: none;
    }

    .track-info img {
        width: 32px;
        height: 32px;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .see-all-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .player {
        margin-right: 0;
        padding: 1rem;
    }

    .time {
        font-size: 0.7rem;
    }

    .artist-name, .song-info h1 {
        font-size: 3rem !important;
    }
}

/* Song Header Styles */
.song-header {
    background: linear-gradient(to bottom, #1a1a1a, #000000);
    padding: 6rem 2rem 2rem;
    color: white;
    position: relative;
}

.song-header-content {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.header-album-img {
    width: 180px;
    height: 180px;
    border-radius: 4px;
    box-shadow: 0 4px 60px rgba(0,0,0,.5);
}

.song-info {
    padding-bottom: 5px;
}

.song-info h1 {
    margin: 0 0 8px 0;
    font-size: 5rem;
}

.song-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.artist-thumbnail {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.artist-link {
    color: white;
    text-decoration: none;
}

.artist-link:hover {
    text-decoration: underline;
}

/* Play Button Styles */
.song-actions {
    position: relative;
    display: flex;
    gap: 1rem;
    margin: 2rem 2rem 0;
    align-items: center;
}

.main-play-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #FFA537;
    border: none;
    color: black;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.main-play-button:hover {
    background-color: #FFA537;
    transform: scale(1.1);
}

.main-play-button i {
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #fff;
    border: none;
    color: black;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.share-button i {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-button:hover {
    transform: scale(1.1);
}

.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    display: none;
    z-index: 9999;
    font-family: inherit;
    text-align: center;
}

.copy-notification.error {
    background-color: #dc3545;
}

.copy-notification.success {
    background-color: #28a745;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    15% { opacity: 1; transform: translate(-50%, 0); }
    85% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}

/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Toggle Button */
.dropdown-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
}

/* Remove the default toggle arrow */
.dropdown-toggle::after {
    display: none;
}

.dropdown-toggle:hover {
    color: #333;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    left: 0; /* Ensures menu opens to the right */
    top: 100%;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    display: none;
    z-index: 1000;
    transform: translateX(0); /* Reset any default transform */
}

.dropdown-menu.show {
    display: block;
}

/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    width: 100%;
    border: none;
    background: none;
    text-align: right;
    cursor: pointer;
    color: #333;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-item i {
    font-size: 16px;
}

@media (max-width: 768px) {

    .track-col.track-duration,
    .track-header .track-col:nth-child(3) {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-album-img {
        display: none;
    }
}

