/* ============================
   ENHANCED WHITE THEME STYLES
   ============================ */

/* Root Variables */
:root {
    --primary-white: #FFFFFF;
    --secondary-gray: #FAFAFA;
    --accent-gray: #F5F5F5;
    --text-dark: #000000;
    --text-medium: #333333;
    --text-muted: #666666;
    --border-color: #F0F0F0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--primary-white);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.white-theme {
    background-color: var(--primary-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.display-1, .display-2, .display-3, .display-4 {
    font-weight: 800;
    letter-spacing: -2px;
}

/* Navbar Styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark) !important;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: translateX(3px);
}

.nav-link {
    color: var(--text-medium) !important;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-dark);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--text-dark) !important;
}

/* Card Styles */
.card {
    border-radius: 20px;
    transition: var(--transition-smooth);
    background-color: var(--primary-white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.card.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #e0e0e0;
}

.card-img-top {
    border-radius: 20px 20px 0 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Button Styles */
.btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 12px 32px;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.btn-dark {
    background-color: var(--text-dark);
    border-color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-dark:hover {
    background-color: #000;
    border-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.btn-outline-dark {
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
}

.btn-outline-dark:hover {
    background-color: var(--text-dark);
    border-color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid var(--border-color);
    padding: 14px 20px;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--text-dark);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    outline: none;
}

.form-control-lg {
    padding: 16px 24px;
    font-size: 1.05rem;
}

/* Badge Styles */
.badge {
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-gray) 0%, var(--primary-white) 50%, var(--accent-gray) 100%);
}

/* Footer */
footer {
    background-color: var(--text-dark);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-white) !important;
}

/* Utility Classes */
.bg-light {
    background-color: var(--secondary-gray) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.border-bottom {
    border-bottom: 1px solid var(--border-color) !important;
}

.border-top {
    border-top: 1px solid var(--border-color) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Feature Icons */
.feature-icon {
    width: 90px;
    height: 90px;
    font-size: 2.2rem;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.feature-icon:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Category Icons */
.category-icon {
    font-size: 3rem;
    line-height: 1;
}

/* Spinner Animation */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
}

/* Pagination */
.pagination .page-link {
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    margin: 0 0.25rem;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.pagination .page-item.active .page-link {
    background-color: var(--text-dark);
    border-color: var(--text-dark);
}

.pagination .page-link:hover {
    background-color: var(--secondary-gray);
    border-color: var(--text-dark);
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* Dropdown Menu */
.dropdown-menu {
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.dropdown-item {
    transition: background-color 0.3s ease;
    border-radius: 8px;
    margin: 4px 8px;
    padding: 10px 16px;
}

.dropdown-item:hover {
    background-color: var(--secondary-gray);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Hover Effects */
.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Blog Content Styles */
.blog-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.blog-content h1, .blog-content h2, .blog-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content blockquote {
    border-left: 4px solid var(--text-dark);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-medium);
    font-size: 1.2rem;
}

.blog-content code {
    background-color: var(--secondary-gray);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.blog-content pre {
    background-color: var(--secondary-gray);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

/* Comment Section */
.comment {
    padding: 1.5rem;
    border-radius: 12px;
    background-color: var(--secondary-gray);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.comment:hover {
    box-shadow: var(--shadow);
}

.comment.reply {
    margin-left: 3rem;
    border-left: 3px solid var(--text-dark);
}

.comment-author {
    font-weight: 700;
    color: var(--text-dark);
}

.comment-time {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.comment-text {
    margin-top: 0.75rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* Admin Dashboard Styles */
.stat-card {
    background: linear-gradient(135deg, var(--primary-white) 0%, var(--secondary-gray) 100%);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* TinyMCE Editor Override */
.tox-tinymce {
    border-radius: 12px !important;
    border: 2px solid var(--border-color) !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .comment.reply {
        margin-left: 1.5rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .card {
        border-radius: 16px;
    }

    .form-control, .form-select {
        border-radius: 10px;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, .comment-form {
        display: none;
    }

    .blog-content {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--text-dark);
    outline-offset: 2px;
}

button:focus, a:focus {
    outline-offset: 4px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dark);
}

/* Selection Color */
::selection {
    background: rgba(0, 0, 0, 0.15);
    color: var(--text-dark);
}

::-moz-selection {
    background: rgba(0, 0, 0, 0.15);
    color: var(--text-dark);
}