:root {
    /* Refined Color Palette - Professional & Organic */
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --sidebar-bg: #111827;
    --sidebar-text: #e5e7eb;
    --sidebar-active: #10b981; /* Emerald-500 */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --accent: #059669; /* Emerald-600 */
    --accent-light: #d1fae5;
    --accent-hover: #047857;
    --border: #e5e7eb;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --glass: rgba(255, 255, 255, 0.7);
    
    /* Layout Constants */
    --sidebar-width: 280px;
    --header-height: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

.dark-mode {
    --bg-primary: #030712;
    --bg-secondary: #111827;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border: #1f2937;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
    --glass: rgba(17, 24, 39, 0.8);
}

/* Base & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Layout Container */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    height: 100vh;
    position: fixed;
    left: calc(-1 * var(--sidebar-width));
    top: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border-right: 1px solid var(--border);
}

.sidebar.active {
    left: 0;
    box-shadow: var(--shadow-xl);
}

.sidebar-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--sidebar-active);
    letter-spacing: -0.5px;
}

.logo i {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

.close-sidebar {
    background: rgba(255,255,255,0.05);
    border: none;
    color: var(--sidebar-text);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.close-sidebar:hover {
    background: rgba(255,255,255,0.1);
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0.75rem;
    overflow-y: auto;
}

.nav-item {
    padding: 0.8rem 1.25rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
    opacity: 0.7;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    opacity: 1;
    transform: translateX(5px);
}

.nav-item.active {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--sidebar-active);
    opacity: 1;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Main Content Styling */
.main-content {
    flex: 1;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents flex items from overflowing */
}

/* Header Refined */
.header {
    height: var(--header-height);
    background-color: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.menu-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    transform: rotate(15deg);
    border-color: var(--accent);
}

.music-toggle, .install-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    padding: 0 12px;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.music-toggle {
    width: 40px;
    padding: 0;
}

.music-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    padding-right: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.music-control .music-toggle {
    border: none;
    box-shadow: none;
    background: transparent;
}

.volume-slider {
    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    background: var(--border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.music-toggle.active {
    color: var(--accent);
}

.install-btn {
    background: var(--accent);
    color: white;
    border: none;
}

.install-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Search & Filters Section */
.content-wrapper {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

.search-section {
    margin-bottom: 3rem;
}

.search-container {
    display: flex;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.search-bar {
    flex: 1;
    position: relative;
}

.search-bar i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.search-bar input {
    width: 100%;
    padding: 1rem 1rem 1rem 50px;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.filter-toggle {
    background: var(--bg-secondary);
    border: 2px solid transparent;
    padding: 0 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.filter-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filters-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
}

.filters-panel.active {
    max-height: 800px;
    opacity: 1;
    transform: translateY(0);
}

.filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.filter-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}

/* Autocomplete Refined */
.autocomplete-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 100;
    overflow: hidden;
    display: none;
    border: 1px solid var(--border);
}

.autocomplete-results.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.autocomplete-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.autocomplete-item:hover {
    background-color: var(--bg-primary);
}

/* Remedies Grid & Cards Refined */
.section-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.section-info h2 {
    font-size: 1.8rem;
    font-weight: 800;
}

.remedies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.remedy-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.remedy-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.remedy-img-container {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.remedy-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.remedy-card:hover .remedy-img {
    transform: scale(1.1);
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.dark-mode .favorite-btn {
    background: rgba(17, 24, 39, 0.8);
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn.active {
    color: #ef4444 !important;
}

.remedy-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.remedy-tag {
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
}

.remedy-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.remedy-author {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.remedy-author i {
    color: var(--accent);
    font-size: 0.8rem;
}

.dark-mode .remedy-tag {
    background: rgba(16, 185, 129, 0.1);
}

.remedy-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.remedy-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.remedy-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-detail {
    width: 100%;
    padding: 1rem;
    margin-top: 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    background-color: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-detail:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Special Section: Remedy of the Day */
.special-section {
    margin-bottom: 4rem;
    position: relative;
    display: block;
}

.special-section.hidden {
    display: none;
}

.special-badge {
    position: absolute;
    top: -15px;
    left: 30px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.remedy-of-the-day-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.remedy-of-the-day-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

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

.rotd-body {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rotd-category {
    color: var(--accent);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.rotd-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.rotd-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rotd-footer {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .remedy-of-the-day-card {
        grid-template-columns: 1fr;
    }
    .rotd-img {
        height: 250px;
    }
    .rotd-body {
        padding: 2rem;
    }
    .rotd-title {
        font-size: 1.8rem;
    }
}

/* Personal Notes */
.notes-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notes-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: var(--transition);
}

.notes-textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

#saveNoteBtn {
    max-width: 200px;
}

/* User Rating System */
.user-rating-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.stars-input {
    display: flex;
    gap: 8px;
}

.star-rate {
    font-size: 1.5rem;
    color: #fbbf24;
    cursor: pointer;
    transition: var(--transition);
}

.star-rate:hover {
    transform: scale(1.2);
}

.rating-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Share Grid */
.share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.share-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.share-icon-btn i {
    font-size: 1.5rem;
}

.share-icon-btn:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.share-icon-btn.whatsapp:hover { background: rgba(37, 211, 102, 0.1); color: #25d366; }
.share-icon-btn.telegram:hover { background: rgba(0, 136, 204, 0.1); color: #0088cc; }
.share-icon-btn.facebook:hover { background: rgba(24, 119, 242, 0.1); color: #1877f2; }
.share-icon-btn.copy:hover { background: rgba(16, 185, 129, 0.1); color: var(--accent); }

/* Detail Overlay Refined */
.detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
}

.detail-overlay.active {
    opacity: 1;
    visibility: visible;
}

.detail-container {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 32px;
    position: relative;
    overflow-y: auto;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
}

.detail-overlay.active .detail-container {
    transform: translateY(0) scale(1);
}

.close-detail {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.close-detail:hover {
    background: var(--danger);
    transform: rotate(90deg);
}

.detail-img-container {
    position: relative;
    height: 400px;
    width: 100%;
    overflow: hidden;
}

.detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.detail-container:hover .detail-img {
    transform: scale(1.05);
}

.author-badge-floating {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
    animation: slideInRight 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.detail-body {
    padding: 3rem;
}

.detail-header {
    margin-bottom: 2.5rem;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.detail-meta-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.25rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.detail-meta-item:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-5px);
}

.detail-meta-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

.detail-meta-item span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
}

.detail-meta-item strong {
    font-size: 1rem;
}

.detail-section {
    margin-bottom: 3rem;
}

.detail-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-section h3 i {
    color: var(--accent);
}

.ingredient-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.ingredient-list li {
    background: var(--bg-primary);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.ingredient-list li:hover {
    border-color: var(--accent);
    transform: scale(1.02);
}

.steps-list {
    list-style: none;
    counter-reset: step-counter;
}

.steps-list li {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 2rem;
    min-height: 3rem;
    display: flex;
    align-items: center;
}

.steps-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    background: var(--accent);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border-left: 5px solid var(--warning);
    padding: 2rem;
    border-radius: 0 20px 20px 0;
    margin-bottom: 3rem;
}

.warning-box h4 {
    color: var(--warning);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.action-btn {
    flex: 1;
    padding: 1.25rem;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.action-btn:hover {
    background: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.action-btn.primary {
    background: var(--accent);
    color: white;
    border: none;
}

.action-btn.primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 768px) {
    .detail-body { padding: 1.5rem; }
    .detail-title { font-size: 1.8rem; }
    .detail-meta-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-actions { flex-direction: column; }
    .detail-img-container { height: 250px; }
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.scroll-top-btn.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.1);
}

/* Footer Styling */
.footer {
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 4rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .legal-links {
        justify-content: center;
    }
}

/* Responsiveness Refined */
@media (min-width: 1024px) {
    .sidebar {
        left: 0;
        position: sticky;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .content-wrapper {
        padding: 3rem 4rem;
    }
}

@media (max-width: 1023px) {
    .header {
        padding: 0 1.25rem;
    }
    
    .content-wrapper {
        padding: 1.5rem;
    }
    
    .remedies-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
    }
    
    .filter-toggle {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }
    
    .section-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.1rem;
    }
    
    .remedies-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
    }
}

/* Skeleton & Utils */
.hidden { display: none !important; }

.skeleton {
    background: linear-gradient(90deg, var(--border) 25%, var(--bg-primary) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

#background-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-container {
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg-secondary), var(--bg-secondary)), radial-gradient(circle at top left, var(--accent), var(--accent-light));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
