/* 
JiBRR WebRTC Podcasting Platform
Main Stylesheet
*/

:root {
    /* Main Colors */
    --primary-color: #516BEE;
    --primary-dark: #4158d0;
    --primary-light: #7389f1;
    --secondary-color: #6c757d;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    
    /* Fonts */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Transitions */
    --transition-speed: 0.3s;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(255,255,255,0.1);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --input-bg: #1e293b;
}

/* Light Theme */
[data-theme="light"] {
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: rgba(0,0,0,0.1);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --input-bg: #f8fafc;
}

/* Base Styles */
body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    transition: background var(--transition-speed), color var(--transition-speed);
}

/* Navbar Theme Support */
.navbar {
    background: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    color: var(--text-color) !important;
}

.nav-link {
    color: var(--text-muted) !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-color) !important;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Form Inputs */
.form-control, .form-select {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.form-control:focus, .form-select:focus {
    background: var(--input-bg);
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 0 3px rgba(81, 107, 238, 0.2);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

#local-video {
    width: 100%;
    height: auto;
    display: block;
}

.audio-activity-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(81, 107, 238, 0.5);
}


.audio-activity-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--activity-width, 0%);
    background-color: #516BEE;
    transition: width 0.1s ease;
}

.dark-mode {
    --bg-color: #121212;
    --bg-secondary: #1e1e1e;
    --text-color: #e0e0e0;
    --text-muted: #adb5bd;
    --border-color: #2d2d2d;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 25px;
    transition: all var(--transition-speed);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(81, 107, 238, 0.25);
}

/* Navbar Styles */
#main-navbar {
    background-color: var(--bg-secondary) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color var(--transition-speed);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color var(--transition-speed);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.btn-signup {
    background-color: var(--primary-color);
    color: white !important;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    margin-left: 1rem;
}

.btn-signup:hover {
    background-color: var(--primary-dark);
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.theme-toggle:hover {
    color: var(--primary-color);
}

.nav-profile-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 8px;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    background-color: var(--bg-color);
    transition: background-color var(--transition-speed);
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-image {
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.feature-card {
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.price-card {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.price-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.price-card:hover:not(.featured) {
    transform: translateY(-10px);
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.price-header {
    margin-bottom: 2rem;
}

.price-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.price-features {
    flex: 1;
    margin-bottom: 2rem;
}

.price-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.price-features li:last-child {
    border-bottom: none;
}

/* Footer */
.site-footer {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    padding: 3rem 0 1.5rem;
    transition: background-color var(--transition-speed);
}

.footer-content {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.site-footer h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.newsletter-form {
    margin-top: 1rem;
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Authentication Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
    padding: 2rem 0;
}

.auth-card {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.auth-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
}

/* Email Confirmation Page */
.confirm-email-content {
    text-align: center;
}

.email-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.confirm-text {
    margin-bottom: 2rem;
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Profile Page */
.profile-container {
    padding: 3rem 0;
}

.profile-sidebar {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    text-align: center;
}

.profile-image-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
}

.profile-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

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

.profile-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.profile-image-container:hover .profile-image-overlay {
    opacity: 1;
}

.upload-icon {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-email {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.profile-plan {
    margin-bottom: 1.5rem;
}

.plan-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.profile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.profile-menu li {
    margin-bottom: 0.5rem;
}

.profile-menu li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    border-radius: 5px;
    transition: background-color var(--transition-speed);
}

.profile-menu li.active a {
    background-color: rgba(81, 107, 238, 0.1);
    color: var(--primary-color);
}

.profile-menu li a:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.05);
}

.profile-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.profile-content {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    height: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.edit-btn {
    padding: 0.25rem 1rem;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Podcast Room Page */
.podcast-room-page {
    overflow: hidden;
    height: 100vh;
    background-color: var(--bg-color);
}

.podcast-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Top Bar */
.podcast-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    height: 60px;
}

.room-info {
    display: flex;
    align-items: center;
}

.room-logo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.room-name {
    font-weight: 600;
    font-size: 1.125rem;
}

.room-actions {
    display: flex;
    align-items: center;
}

.btn-room-action {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.1rem;
    padding: 0.5rem;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.btn-room-action:hover {
    color: var(--primary-color);
}

.room-time {
    font-family: monospace;
    font-size: 1rem;
    margin: 0 1rem;
}

.video-mirrored {
    transform: scaleX(-1);
}

.sharing-mode {
    display: none; /* Adjust UI elements to hide during sharing */
}

.control-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    background-color: rgba(75, 72, 72, 0.8);
    border-radius: 40px;
    padding: 12px 25px;
    backdrop-filter: blur(10px);
}

.btn-control {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: background 0.3s;
}

.btn-control:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-control:focus {
    outline: none;
}

.btn-control.red {
    color: red;
}

.btn-exit {
    background-color: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 1rem;
    transition: background-color var(--transition-speed);
}

.btn-exit:hover {
    background-color: #bd2130;
}

/* Main Content Area */
.podcast-content {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Video Grid */
.video-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    grid-auto-rows: 1fr;
    gap: 10px;
    padding: 10px;
    overflow: auto;
    background-color: var(--bg-color);
}

.video-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-color: #000;
}

.video-container.active-speaker {
    border: 2px solid var(--primary-color);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.participant-info {
    color: white;
}

.participant-name {
    font-weight: 500;
}

.audio-indicator {
    display: flex;
    align-items: center;
}



@keyframes wave {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(2);
    }
}

/* Chat Sidebar */
.chat-sidebar {
    width: 300px;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-speed);
}

.chat-sidebar.open {
    transform: translateX(0);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-close-chat {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.chat-message {
    margin-bottom: 1rem;
}

.message-sender {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.message-content {
    padding: 0.75rem;
    background-color: var(--bg-color);
    border-radius: 10px;
    word-break: break-word;
}

.chat-message.own-message .message-content {
    background-color: var(--primary-light);
    color: white;
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.chat-input button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.chat-input button:hover {
    background-color: var(--primary-dark);
}

/* Control Bar */
.podcast-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    height: 80px;
}

.controls-left, .controls-right {
    display: flex;
    gap: 1rem;
}

.controls-center {
    display: flex;
    gap: 1.5rem;
}

.btn-control {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: color var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-control:hover {
    color: var(--primary-color);
}

.btn-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
}

.btn-circle:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.btn-record {
    background-color: var(--danger-color);
    color: white;
}

.btn-record:hover {
    background-color: #bd2130;
    color: white;
}

.btn-control.active {
    color: var(--primary-color);
}

.btn-control.muted {
    color: var(--danger-color);
}

/* Modals */
.modal-content {
    background-color: var(--bg-secondary);
    color: var(--text-color);
}

.modal-header {
    border-bottom-color: var(--border-color);
}

.modal-footer {
    border-top-color: var(--border-color);
}

.audio-meter {
    height: 30px;
    background-color: var(--bg-color);
    border-radius: 15px;
    overflow: hidden;
    margin: 10px 0;
}

.audio-meter-bar {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    transition: width 0.1s ease;
}

.camera-preview-container {
    width: 100%;
    height: 200px;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.camera-preview-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recording-status {
    text-align: center;
    margin-bottom: 2rem;
}

.recording-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.recording-pulse {
    width: 20px;
    height: 20px;
    background-color: var(--danger-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.recording-time {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 600;
}

.recording-formats, .recording-space {
    margin-top: 1.5rem;
}

.format-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.participants-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.participant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.btn-participant-action {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    padding: 0.25rem;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.btn-participant-action:hover {
    color: var(--primary-color);
}

.invite-section {
    margin-top: 2rem;
}

.invite-link-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .price-card.featured {
        transform: none;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .price-card:hover, .price-card.featured:hover {
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .profile-sidebar {
        margin-bottom: 2rem;
    }
    
    .podcast-controls {
        padding: 0.75rem;
    }
    
    .controls-center {
        gap: 0.75rem;
    }
    
    .btn-circle {
        width: 40px;
        height: 40px;
    }
    
    .controls-left, .controls-right {
        gap: 0.5rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .chat-sidebar {
        width: 100%;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 10;
    }
}
/* ============================================
   RESPONSIVE MOBILE-FIRST STYLES
   ============================================ */

/* Base responsive typography */
html { font-size: 16px; }
@media (max-width: 575px) { html { font-size: 14px; } }

/* Container padding on mobile */
@media (max-width: 575px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
}

/* Navbar mobile */
@media (max-width: 991px) {
    .navbar-brand .logo-text { font-size: 1.25rem; }
    .navbar-nav { padding: 1rem 0; }
    .nav-item { padding: 0.5rem 0; }
    .btn-signup { margin-top: 0.5rem; display: inline-block; }
}

/* Hero section responsive */
@media (max-width: 767px) {
    .hero-section { padding: 3rem 0; text-align: center; }
    .hero-section h1 { font-size: 2rem; }
    .hero-section p { font-size: 1rem; }
    .hero-section .btn { width: 100%; margin-bottom: 0.5rem; }
}

/* Features section responsive */
@media (max-width: 767px) {
    .feature-card { margin-bottom: 1.5rem; padding: 1.5rem; }
    .section-title { font-size: 1.75rem; }
}

/* Pricing section responsive */
@media (max-width: 991px) {
    .price-card { margin-bottom: 1.5rem; }
    .price-card .price { font-size: 2rem; }
    .price-card ul { font-size: 0.9rem; }
}

@media (max-width: 575px) {
    .pricing-section .col-lg-3 { padding: 0 0.5rem; }
    .price-card { padding: 1.25rem; }
    .price-card .btn { padding: 0.75rem; font-size: 0.9rem; }
}

/* Form inputs mobile */
@media (max-width: 575px) {
    .form-control { font-size: 16px !important; } /* Prevents iOS zoom */
    .btn { padding: 0.75rem 1rem; }
}

/* Auth pages (login, register, subscribe) responsive */
@media (max-width: 767px) {
    .auth-container, .subscribe-container { padding: 1rem; }
    .auth-card { padding: 1.5rem; margin: 1rem 0; }
    .subscribe-grid { grid-template-columns: 1fr; }
    .plan-section, .payment-section { padding: 1.25rem; }
    .plan-card { padding: 1rem; }
}

/* Podcast room responsive */
@media (max-width: 767px) {
    .video-grid { grid-template-columns: 1fr; gap: 0.5rem; }
    .video-container { min-height: 200px; }
    .controls-bar { flex-wrap: wrap; padding: 0.75rem; gap: 0.5rem; }
    .control-btn { padding: 0.75rem; min-width: 50px; }
    .chat-sidebar { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; }
    .recording-controls { flex-direction: column; gap: 0.5rem; }
}

/* Profile page responsive */
@media (max-width: 767px) {
    .profile-header { flex-direction: column; text-align: center; }
    .profile-avatar { margin-bottom: 1rem; }
    .profile-stats { justify-content: center; }
}

/* Admin dashboard responsive */
@media (max-width: 991px) {
    .admin-sidebar { 
        position: fixed; 
        left: -250px; 
        transition: left 0.3s; 
        z-index: 1001;
    }
    .admin-sidebar.open { left: 0; }
    .admin-content { margin-left: 0; }
    .admin-header { padding: 1rem; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .chart-container { height: 250px; }
}

@media (max-width: 575px) {
    .stat-cards { grid-template-columns: 1fr; }
    .stat-card { padding: 1rem; }
    .stat-card h3 { font-size: 1.5rem; }
    .admin-table { font-size: 0.85rem; }
    .admin-table th, .admin-table td { padding: 0.5rem; }
}

/* Modal fullscreen on mobile */
@media (max-width: 575px) {
    .modal-dialog:not(.modal-fullscreen-sm-down) { margin: 0.5rem; }
    .modal-content { border-radius: 0.5rem; }
    .modal-body { padding: 1rem; }
}

/* Footer responsive */
@media (max-width: 767px) {
    .site-footer { padding: 2rem 0 1rem; }
    .site-footer h3 { font-size: 1rem; margin-bottom: 0.75rem; }
    .footer-links { margin-bottom: 0; }
    .footer-links li { margin-bottom: 0.35rem; }
    .footer-legal-links { margin-top: 0.5rem; }
    .footer-legal-links a { margin: 0 0.35rem; font-size: 0.8rem; }
    .newsletter-form .input-group { max-width: 250px; margin: 0 auto; }
}

/* Touch-friendly tap targets */
@media (max-width: 767px) {
    a, button, .btn, .nav-link, .form-check-input {
        min-height: 44px;
        min-width: 44px;
    }
    .footer-links a { 
        display: inline-block; 
        padding: 0.25rem 0; 
    }
}

/* Utility classes for mobile */
.mobile-only { display: none; }
.desktop-only { display: block; }

@media (max-width: 767px) {
    .mobile-only { display: block; }
    .desktop-only { display: none; }
    .text-center-mobile { text-align: center; }
    .mb-mobile { margin-bottom: 1rem; }
}

/* Safe area for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .cookie-banner { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
    .controls-bar { padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); }
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* Print styles */
@media print {
    .cookie-banner, .navbar, .site-footer, .btn { display: none !important; }
    .container { max-width: 100%; }
}
