/**
 * 마케팅랩 신규 기능 스타일
 * - 다크모드
 * - 알림 시스템
 * - 북마크
 * - 회원 등급
 * - 회원가입 혜택
 * - SNS 공유
 */

/* ============================================
   CSS Variables (Light Mode - Default)
   ============================================ */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);

    --primary-color: #667eea;
    --primary-hover: #5a67d8;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
}

/* ============================================
   Dark Mode Variables
   ============================================ */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-hover: #334155;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: #334155;
    --border-light: #475569;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);
}

/* ============================================
   Dark Mode - Comprehensive Styles
   ============================================ */

/* Body & Main Background */
[data-theme="dark"] body {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .site-main {
    background-color: #0f172a !important;
}

/* Container & Layout */
[data-theme="dark"] .container {
    background-color: transparent !important;
}

[data-theme="dark"] .main-layout,
[data-theme="dark"] .main-content {
    background-color: transparent !important;
}

/* Header */
[data-theme="dark"] .header-top {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
}

[data-theme="dark"] .header-main {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .nav-main {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .nav-link {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .nav-link:hover {
    color: #818cf8 !important;
    background-color: #334155 !important;
}

[data-theme="dark"] .nav-dropdown {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .nav-dropdown a {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .nav-dropdown a:hover {
    background-color: #334155 !important;
}

/* Search */
[data-theme="dark"] .header-search .search-input,
[data-theme="dark"] .header-search .search-select {
    background-color: #334155 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .header-search .search-input::placeholder {
    color: #94a3b8 !important;
}

/* Cards & Boxes */
[data-theme="dark"] .card,
[data-theme="dark"] .auth-box,
[data-theme="dark"] .category-card,
[data-theme="dark"] .highlight-card,
[data-theme="dark"] .mypage-section,
[data-theme="dark"] .widget,
[data-theme="dark"] .sidebar-widget,
[data-theme="dark"] .content-box,
[data-theme="dark"] .board-table-wrapper,
[data-theme="dark"] .post-view,
[data-theme="dark"] .comment-form,
[data-theme="dark"] .comments-section {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* Tables */
[data-theme="dark"] .board-table,
[data-theme="dark"] .data-table,
[data-theme="dark"] table {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .board-table th,
[data-theme="dark"] .data-table th,
[data-theme="dark"] table th {
    background-color: #334155 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .board-table td,
[data-theme="dark"] .data-table td,
[data-theme="dark"] table td {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .board-table tr:hover td,
[data-theme="dark"] .data-table tr:hover td {
    background-color: #334155 !important;
}

[data-theme="dark"] .board-table a,
[data-theme="dark"] .data-table a {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .board-table a:hover,
[data-theme="dark"] .data-table a:hover {
    color: #818cf8 !important;
}

/* Post Items */
[data-theme="dark"] .post-item,
[data-theme="dark"] .post-list-item,
[data-theme="dark"] .comment-item {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .post-item:hover,
[data-theme="dark"] .post-list-item:hover {
    background-color: #334155 !important;
}

/* Sidebar */
[data-theme="dark"] .sidebar {
    background-color: transparent !important;
}

[data-theme="dark"] .sidebar .widget,
[data-theme="dark"] .sidebar .sidebar-widget,
[data-theme="dark"] .sidebar .card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .sidebar .widget-title,
[data-theme="dark"] .sidebar h3,
[data-theme="dark"] .sidebar h4 {
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .ranked-list li,
[data-theme="dark"] .category-list li,
[data-theme="dark"] .sidebar ul li {
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .ranked-list li:hover,
[data-theme="dark"] .category-list li:hover,
[data-theme="dark"] .sidebar ul li:hover {
    background-color: #334155 !important;
}

/* Form Elements */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: #334155 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #94a3b8 !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2) !important;
}

/* Buttons */
[data-theme="dark"] .btn-outline {
    border-color: #475569 !important;
    color: #e2e8f0 !important;
    background-color: transparent !important;
}

[data-theme="dark"] .btn-outline:hover {
    background-color: #334155 !important;
    border-color: #818cf8 !important;
}

[data-theme="dark"] .btn-secondary {
    background-color: #475569 !important;
    color: #e2e8f0 !important;
}

/* Footer */
[data-theme="dark"] .site-footer {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .footer-top,
[data-theme="dark"] .footer-bottom,
[data-theme="dark"] .footer-nav {
    border-color: #1e293b !important;
}

[data-theme="dark"] .footer-nav a {
    color: #94a3b8 !important;
}

[data-theme="dark"] .footer-nav a:hover {
    color: #818cf8 !important;
}

[data-theme="dark"] .footer-stats-bar {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

/* Breadcrumb */
[data-theme="dark"] .breadcrumb,
[data-theme="dark"] .breadcrumb-wrapper {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .breadcrumb a,
[data-theme="dark"] .breadcrumb span {
    color: #94a3b8 !important;
}

/* Pagination */
[data-theme="dark"] .pagination a,
[data-theme="dark"] .pagination span {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .pagination a:hover {
    background-color: #334155 !important;
}

[data-theme="dark"] .pagination .active {
    background-color: #6366f1 !important;
    color: white !important;
}

/* Badges & Labels */
[data-theme="dark"] .badge {
    background-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* Modal */
[data-theme="dark"] .modal-content {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: #334155 !important;
}

/* Hero / Banner */
[data-theme="dark"] .hero-section {
    background-color: #1e293b !important;
}

/* Premium Ad Section */
[data-theme="dark"] .premium-ad,
[data-theme="dark"] .ad-section,
[data-theme="dark"] .premium-section {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

/* Quick Links */
[data-theme="dark"] .quick-links,
[data-theme="dark"] .quick-menu {
    background-color: #1e293b !important;
}

[data-theme="dark"] .quick-links a,
[data-theme="dark"] .quick-menu a {
    background-color: #334155 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .quick-links a:hover,
[data-theme="dark"] .quick-menu a:hover {
    background-color: #475569 !important;
}

/* Category Pills */
[data-theme="dark"] .category-pills a,
[data-theme="dark"] .tab-pills a,
[data-theme="dark"] .tabs a {
    background-color: #334155 !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .category-pills a.active,
[data-theme="dark"] .tab-pills a.active,
[data-theme="dark"] .tabs a.active {
    background-color: #6366f1 !important;
    color: white !important;
}

/* Post Meta */
[data-theme="dark"] .post-meta,
[data-theme="dark"] .post-info,
[data-theme="dark"] .meta-info {
    color: #94a3b8 !important;
}

/* Text Colors */
[data-theme="dark"] h1, [data-theme="dark"] h2,
[data-theme="dark"] h3, [data-theme="dark"] h4,
[data-theme="dark"] h5, [data-theme="dark"] h6 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] p {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .text-muted {
    color: #64748b !important;
}

/* Links */
[data-theme="dark"] a {
    color: #818cf8;
}

[data-theme="dark"] a:hover {
    color: #a5b4fc;
}

/* Scroll Top Button */
[data-theme="dark"] .scroll-top-btn {
    background-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* Mobile Navigation */
[data-theme="dark"] .mobile-nav {
    background-color: #1e293b !important;
}

[data-theme="dark"] .mobile-nav-menu a {
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .mobile-nav-menu a:hover {
    background-color: #334155 !important;
}

/* Alert / Notice */
[data-theme="dark"] .alert {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* Tooltips */
[data-theme="dark"] [data-tooltip]:after {
    background-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* Selection */
[data-theme="dark"] ::selection {
    background-color: #6366f1;
    color: white;
}

/* Autofill Override */
[data-theme="dark"] input:-webkit-autofill,
[data-theme="dark"] input:-webkit-autofill:hover,
[data-theme="dark"] input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #334155 inset !important;
    -webkit-text-fill-color: #e2e8f0 !important;
}

/* ============================================
   Dark Mode Toggle Button
   ============================================ */
.header-quick .dark-mode-toggle,
button.dark-mode-toggle {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    background: var(--bg-tertiary, #f1f5f9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.header-quick .dark-mode-toggle:hover,
button.dark-mode-toggle:hover {
    background: var(--primary-color, #667eea);
    transform: scale(1.05);
}

.header-quick .dark-mode-toggle:hover .toggle-icon,
button.dark-mode-toggle:hover .toggle-icon {
    color: white !important;
}

.dark-mode-toggle .toggle-icon {
    font-size: 18px;
    line-height: 1;
    transition: all 0.3s ease;
}

.dark-mode-toggle .toggle-icon.sun {
    color: #f59e0b;
    display: inline-block !important;
}

.dark-mode-toggle .toggle-icon.moon {
    color: #6366f1;
    display: none !important;
}

/* 다크모드일 때 */
[data-theme="dark"] .dark-mode-toggle {
    background: var(--bg-tertiary, #334155);
}

[data-theme="dark"] .dark-mode-toggle:hover {
    background: var(--primary-color, #667eea);
}

[data-theme="dark"] .dark-mode-toggle .toggle-icon.sun {
    display: none !important;
}

[data-theme="dark"] .dark-mode-toggle .toggle-icon.moon {
    display: inline-block !important;
}

/* ============================================
   Notification System
   ============================================ */
.notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: var(--bg-tertiary, #f1f5f9);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.notification-bell:hover {
    background: var(--primary-color, #667eea);
    transform: scale(1.05);
}

.notification-bell:hover i {
    color: white;
}

.notification-bell i {
    font-size: 18px;
    color: var(--text-secondary);
}

.notification-bell .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--danger-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-height: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.notification-dropdown.show {
    display: block;
    animation: slideDown 0.2s ease;
}

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

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

.notification-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.notification-header .mark-all-read {
    font-size: 13px;
    color: var(--primary-color);
    cursor: pointer;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: var(--bg-hover);
}

.notification-item.unread {
    background: rgba(102, 126, 234, 0.05);
}

.notification-item .noti-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.notification-item .noti-icon.comment {
    background: #dbeafe;
    color: #3b82f6;
}

.notification-item .noti-icon.like {
    background: #fce7f3;
    color: #ec4899;
}

.notification-item .noti-icon.system {
    background: #fef3c7;
    color: #f59e0b;
}

.notification-item .noti-content {
    flex: 1;
    min-width: 0;
}

.notification-item .noti-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.notification-item .noti-message {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-item .noti-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.notification-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.notification-footer a {
    font-size: 14px;
    color: var(--primary-color);
}

/* ============================================
   Bookmark Button
   ============================================ */
.bookmark-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: var(--text-secondary);
}

.bookmark-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.bookmark-btn.bookmarked {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #f59e0b;
}

.bookmark-btn.bookmarked i {
    color: #f59e0b;
}

/* ============================================
   Grade Badge
   ============================================ */
.grade-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(0,0,0,0.05);
}

.grade-badge-sm {
    font-size: 11px;
    padding: 1px 6px;
}

.grade-badge-lg {
    font-size: 14px;
    padding: 4px 12px;
}

.grade-badge i {
    font-size: inherit;
}

/* ============================================
   Register Benefits Section
   ============================================ */
.register-page {
    max-width: 900px;
}

.register-benefits {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
}

.benefits-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.benefits-header i {
    font-size: 28px;
}

.benefits-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.benefit-item:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.2);
}

.benefit-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.benefit-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.benefit-text span {
    font-size: 12px;
    opacity: 0.9;
}

.register-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-top: -10px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .register-benefits {
        padding: 20px;
    }
}

/* ============================================
   Social Share Buttons
   ============================================ */
.social-share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 16px;
}

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

.share-kakao {
    background: #fee500;
    color: #3c1e1e;
}

.share-facebook {
    background: #1877f2;
    color: white;
}

.share-twitter {
    background: #000000;
    color: white;
}

.share-copy {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.share-copy:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ============================================
   Post Preview in List
   ============================================ */
.post-preview {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-item-with-preview {
    padding: 15px 0;
}

.post-item-with-preview .post-title {
    font-weight: 500;
    margin-bottom: 4px;
}

/* ============================================
   Notifications Page
   ============================================ */
.notifications-page {
    max-width: 800px;
    margin: 0 auto;
}

.notifications-page .notification-item {
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}

.notifications-page .notification-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.notification-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.notification-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ============================================
   Toast Notification
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.3s ease;
    max-width: 350px;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast.toast-error {
    border-left: 4px solid var(--danger-color);
}

.toast.toast-info {
    border-left: 4px solid var(--primary-color);
}

.toast-icon {
    font-size: 20px;
}

.toast-success .toast-icon {
    color: var(--success-color);
}

.toast-error .toast-icon {
    color: var(--danger-color);
}

.toast-info .toast-icon {
    color: var(--primary-color);
}

.toast-message {
    flex: 1;
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

/* ============================================
   Bookmark Page (MyPage Tab)
   ============================================ */
.bookmark-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bookmark-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.bookmark-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.bookmark-item .bookmark-content {
    flex: 1;
    min-width: 0;
}

.bookmark-item .bookmark-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: block;
}

.bookmark-item .bookmark-title:hover {
    color: var(--primary-color);
}

.bookmark-item .bookmark-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

.bookmark-item .bookmark-remove {
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
}

.bookmark-item .bookmark-remove:hover {
    color: var(--danger-color);
}

/* ============================================
   Header Icon Buttons
   ============================================ */
.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.header-quick {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-wrapper {
    position: relative;
}

/* ============================================
   Additional Dark Mode Styles
   ============================================ */
[data-theme="dark"] .notification-dropdown {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .notification-item:hover {
    background: var(--bg-hover);
}

[data-theme="dark"] .bookmark-item {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .notification-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .notification-card.unread {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .notification-stats {
    background: var(--bg-secondary);
}

[data-theme="dark"] .page-header {
    border-color: var(--border-color);
}

/* ============================================
   Post Preview Styles
   ============================================ */
.col-title .post-title-link {
    display: block;
}

.col-title .post-title-text {
    font-weight: 500;
}

.col-title .post-preview {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .col-title .post-preview {
        display: none;
    }
}

/* ============================================
   Mobile Responsive Fixes
   ============================================ */
@media (max-width: 768px) {
    .header-quick {
        gap: 5px;
    }

    .dark-mode-toggle {
        padding: 6px 10px;
    }

    .notification-bell,
    .header-icon-btn {
        width: 36px;
        height: 36px;
    }

    .notification-dropdown {
        width: 300px;
        right: -50px;
    }

    .register-benefits {
        margin-bottom: 20px;
    }

    .benefits-header h3 {
        font-size: 18px;
    }

    .social-share-buttons {
        flex-wrap: wrap;
    }

    .share-label {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* ============================================
   Hero Slider - Modern Redesign
   ============================================ */
.hero-slider {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Modern gradient backgrounds with overlay pattern */
.slide-bg-orange {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.slide-bg-orange::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.slide-bg-purple {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #c084fc 100%) !important;
}

.slide-bg-purple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 90%, rgba(255,255,255,0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.slide-bg-blue {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%) !important;
}

.slide-bg-green {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%) !important;
}

/* Badge styling */
.slide-badge {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px !important;
    padding: 8px 18px !important;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Text styling */
.slide-text h2 {
    font-size: 28px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.slide-text h2 strong {
    font-size: 36px !important;
    font-weight: 800 !important;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.9));
    -webkit-background-clip: text;
    background-clip: text;
}

.slide-text p {
    font-size: 14px !important;
    opacity: 0.95 !important;
    max-width: 450px;
}

/* Button styling */
.slide-buttons .btn {
    border-radius: 12px !important;
    padding: 14px 28px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slide-buttons .btn-white {
    background: rgba(255,255,255,0.95) !important;
    color: #6366f1 !important;
    border: none !important;
}

.slide-buttons .btn-white:hover {
    background: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Icon styling */
.slide-image {
    opacity: 0.15;
    font-size: 180px !important;
}

.slide-image i {
    filter: drop-shadow(0 0 30px rgba(255,255,255,0.3));
}

/* Slider controls */
.slider-arrow {
    background: rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    transition: all 0.3s ease !important;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.3) !important;
    transform: scale(1.1);
}

.slider-dots .dot {
    width: 24px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background: rgba(255,255,255,0.4) !important;
    transition: all 0.3s ease !important;
}

.slider-dots .dot.active {
    width: 32px !important;
    background: #fff !important;
}

/* Dark mode adjustments */
[data-theme="dark"] .hero-slider {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Navigation Menu Fixes
   ============================================ */
.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-link {
    padding: 14px 12px;
    white-space: nowrap;
    font-size: 13px;
}

@media (max-width: 1400px) {
    .nav-link {
        padding: 12px 8px;
        font-size: 12px;
    }
}

@media (max-width: 1200px) {
    .nav-link {
        padding: 10px 6px;
        font-size: 11px;
    }

    .nav-link i {
        display: none;
    }
}
