@import "../fonts.css";

:root {
    --primary-color: #6200EE;
    --primary-light: #9a67ea;
    --primary-dark: #320b86;
    --secondary-color: #ff9800;
    --secondary-light: #ffc947;
    --secondary-dark: #c66900;
    --dark-color: #121212;
    --light-color: #f5f5f5;
    --gray-color: #757575;
    --gray-light: #e0e0e0;
    --white-color: #ffffff;
    --black-color: #000000;
}

body {
    font-family: 'YB', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    text-align: right;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

.btn {
    font-family: 'YB', sans-serif;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:disabled{
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    opacity: 0.6;
}
.btn-primary:focus,.btn-primary:active{
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99999;
}

.navbar-brand .logo {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--dark-color);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--white-color);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Sections */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Category Cards */
.category-card {
    display: block;
    background-color: var(--white-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background-color: rgba(103, 58, 183, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* Podcast Cards */
.podcast-card {
    background-color: var(--white-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.podcast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.podcast-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast-body {
    padding: 1.5rem;
}

.podcast-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.podcast-author {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.podcast-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray-color);
}

.podcast-meta i {
    margin-left: 0.3rem;
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background-color: var(--white-color);
    color: var(--dark-color);
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-text {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--dark-color);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    opacity: 1;
    padding-right: 5px;
}

.newsletter-form .form-control {
    border-radius: 8px 0 0 8px;
}

.newsletter-form .btn {
    border-radius: 0 8px 8px 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(103, 58, 183, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
    margin: 0;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

.dark-mode-toggle .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Categories Page */
.categories-main {
    padding: 4rem 0;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.category-main-card {
    background-color: var(--white-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.category-header .category-icon {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    background-color: rgba(103, 58, 183, 0.1);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.category-header .category-title {
    font-size: 1.3rem;
    margin-bottom: 0;
}

.category-podcasts {
    margin-bottom: 1.5rem;
}

.podcast-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.podcast-item:last-child {
    border-bottom: none;
}

.podcast-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-left: 1rem;
}

.podcast-info {
    flex: 1;
}

.podcast-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.podcast-author {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-bottom: 0;
}

/* Player Page */
.podcast-player {
    padding: 4rem 0;
}

.player-main {
    background-color: var(--white-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.podcast-cover {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.podcast-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.player-controls {
    text-align: center;
}

.podcast-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.podcast-author {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.progress-container {
    margin-bottom: 2rem;
}

.progress-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

.progress {
    height: 6px;
    background-color: var(--gray-light);
    border-radius: 3px;
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 3px;
}

.player-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.btn-player {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-player:hover {
    background-color: var(--primary-dark);
    color: var(--white-color);
    transform: scale(1.05);
}

.play-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.player-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-option {
    background-color: transparent;
    color: var(--gray-color);
    border: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-option:hover {
    color: var(--primary-color);
}

.podcast-info {
    background-color: var(--white-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.info-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.info-text {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.podcast-meta {
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.meta-item i {
    margin-left: 0.5rem;
    color: var(--primary-color);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    background-color: rgba(103, 58, 183, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Related Podcasts */
.related-podcasts {
    padding: 4rem 0;
}

/* Comments Section */
.comments {
    padding-bottom: 4rem;
}

.comment-form {
    margin-bottom: 3rem;
}

.comment-list {
    margin-top: 2rem;
}

.comment-item {
    display: flex;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    margin-left: 1.5rem;
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
    margin-left: 0.5rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.comment-text {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-actions a {
    font-size: 0.8rem;
    color: var(--gray-color);
    transition: all 0.3s ease;
}

.comment-actions a:hover {
    color: var(--primary-color);
}

.comment-actions a i {
    margin-left: 0.3rem;
}

/* Auth Pages */
.auth-section {
    padding: 6rem 0;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
}

.auth-card {
    background-color: var(--white-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--gray-color);
    margin-bottom: 0;
}

.auth-form .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.auth-form .form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--gray-light);
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(103, 58, 183, 0.25);
}

.auth-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-form .form-check-label {
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

.social-login p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.social-login .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.1rem;
}

/* Dashboard */
.dashboard {
    padding: 3rem 0;
}

.sidebar {
    position: sticky;
    top: 20px;
}

.profile-card {
    background-color: var(--white-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.profile-avatar {
    margin-bottom: 1rem;
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.profile-email {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.menu-item {
    border-bottom: 1px solid var(--gray-light);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.menu-item a i {
    margin-left: 0.5rem;
    font-size: 1.1rem;
}

.menu-item a:hover, .menu-item.active a {
    background-color: rgba(103, 58, 183, 0.1);
    color: var(--primary-color);
}

.dashboard-content {
    background-color: var(--white-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.stat-card {
    display: flex;
    align-items: center;
    background-color: var(--white-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white-color);
    margin-left: 1.5rem;
}

.stat-icon.bg-primary {
    background-color: var(--primary-color);
}

.stat-icon.bg-success {
    background-color: #4caf50;
}

.stat-icon.bg-warning {
    background-color: #ff9800;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 0;
}

.dashboard-section {
    margin-bottom: 3rem;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.table th {
    font-weight: 600;
    color: var(--primary-color);
}

.user-dropdown .user-name {
    font-weight: 500;
}

.user-dropdown img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand .logo {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-header .btn {
        margin-top: 1rem;
    }
}