:root {
    /* --laravel-red: #FF2D20; */
    --laravel-red: #dc3545;
    --php-purple: #777BB4;
    --dark-bg: #1e1e24;
    --off-white: #F8F9FA;
    --text-main: #333;
    --text-muted: #6c757d;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --off-white: #121212;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --card-bg: #1e1e1e;
    --border-color: #2d2d2d;
    --dark-bg: #000000;
}

body {
    font-family: 'Merriweather', serif;
    background-color: var(--off-white);
    color: var(--text-main);
    transition: background-color 0.3s, color 0.3s;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar,
.btn,
.breadcrumb,
.badge,
.nav-link,
.card-footer {
    font-family: 'Inter', sans-serif;
}

/* Navbar Customization */
.navbar {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: background-color 0.3s;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
}

[data-theme="dark"] .navbar-brand {
    color: #fff;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    margin-right: 1rem;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--laravel-red);
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--off-white) 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-weight: 800;
    color: var(--text-main);
    font-size: 3rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Buttons */
.btn-laravel {
    background-color: var(--laravel-red);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-laravel:hover {
    background-color: #d9251a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(255, 45, 32, 0.2);
}

.btn-outline-secondary {
    border-color: var(--text-muted);
    color: var(--text-main);
    border-width: 2px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

.btn-outline-secondary:hover {
    background-color: var(--text-muted);
    color: var(--off-white);
}

/* Code Block Decoration */
.code-window {
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    font-family: 'Fira Code', monospace;
}

.window-header {
    background: #2d2d2d;
    padding: 0.5rem 1rem;
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red-dot {
    background: #ff5f56;
}

.yellow-dot {
    background: #ffbd2e;
}

.green-dot {
    background: #27c93f;
}

.code-content {
    padding: 1.5rem;
    color: #d4d4d4;
    font-size: 0.9rem;
}

.keyword {
    color: #569cd6;
}

.string {
    color: #ce9178;
}

.function {
    color: #dcdcaa;
}

.comment {
    color: #6a9955;
}

/* Card Customization */
.blog-card {
    border: none;
    border-radius: 12px;
    background: var(--card-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    background-color: #e2e8f0;
    position: relative;
}

[data-theme="dark"] .card-img-top {
    background-color: #2d2d2d;
    color: #555;
}

.badge-laravel {
    background-color: rgba(255, 45, 32, 0.1);
    color: var(--laravel-red);
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-php {
    background-color: rgba(119, 123, 180, 0.1);
    color: var(--php-purple);
    font-weight: 600;
    font-size: 0.75rem;
}

.card-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 0.5rem;
    color: var(--text-main);
}

.card-text {
    color: var(--text-muted);
}

.meta-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

/* Single Post Styles */
.post-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-main);
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--laravel-red);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--text-muted);
    margin: 2rem 0;
}

.post-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    margin: 2rem 0;
    overflow-x: auto;
}

.toc-sticky {
    position: sticky;
    top: 100px;
}

.toc-link {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 0;
    border-left: 2px solid transparent;
    padding-left: 1rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.toc-link:hover,
.toc-link.active {
    color: var(--laravel-red);
    border-left-color: var(--laravel-red);
}

/* Footer */
.footer {
    background-color: #1a202c;
    color: #cbd5e0;
    padding-top: 4rem;
    padding-bottom: 2rem;
    margin-top: 5rem;
}

[data-theme="dark"] .footer {
    background-color: #0d0d0d;
    border-top: 1px solid #333;
}

.footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--laravel-red);
}

.newsletter-input {
    background-color: #2d3748;
    border: 1px solid #4a5568;
    color: white;
}

.newsletter-input:focus {
    background-color: #2d3748;
    border-color: var(--laravel-red);
    color: white;
    box-shadow: none;
}

/* Utility classes for view toggling */
.view-section {
    display: block;
    animation: fadeIn 0.5s;
}

.d-none {
    display: none !important;
}

a {
    color: rgba(var(--bs-danger-rgb));
    text-decoration: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}