/* Modern Design System - v2 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --color-bg: #F8FAFC;
    --color-surface: #FFFFFF;
    --color-text-main: #1E293B;
    --color-text-muted: #64748B;
    --color-primary: #6366f1;
    --color-secondary: #3b82f6;
    --gradient-primary: linear-gradient(135deg, #6366f1, #3b82f6);

    --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);

    --radius-lg: 20px;
    --radius-md: 12px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    font-weight: 700;
}

/* Glassmorphism Header */
.header-glass {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

/* Modern Masonry Grid */
.masonry-grid {
    column-count: 4;
    column-gap: 1.5rem;
    padding: 1rem 0;
}

@media (max-width: 1200px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* Modern Card */
.card-modern {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    overflow: hidden;
    break-inside: avoid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-modern img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.card-modern .card-body {
    padding: 1.25rem;
}

.card-text-simple {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

/* Buttons */
.btn-modern {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 9999px;
    /* Pill shape */
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: opacity 0.2s;
}

.btn-modern:hover {
    opacity: 0.9;
    color: white;
    text-decoration: none;
}

/* Search Bar */
.search-container-modern {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.input-modern {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    font-family: var(--font-body);
    transition: all 0.3s;
}

.input-modern:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Quote of the Day Hero */
.quote-hero {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0 3rem 0;
    position: relative;
    overflow: hidden;
}

.quote-hero::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 15rem;
    color: rgba(99, 102, 241, 0.05);
    font-family: serif;
    line-height: 1;
}

.quote-hero .quote-text {
    font-size: 1.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

/* Footer modern */
.footer-modern {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 3rem 0;
    margin-top: 4rem;
}

/* Utilities (replacing Bootstrap requirement) */
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

@media (min-width: 768px) {
    .d-md-block {
        display: block !important;
    }

    .d-md-none {
        display: none !important;
    }
}

/* Modern Sidenav (Clean List Style) */
.sidenav-modern {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    background-color: #fff;
    overflow-x: hidden;
    transition: 0.3s;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.sidenav-header {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
}

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

.sidenav-modern .closebtn {
    font-size: 2rem;
    color: var(--color-text-muted);
    text-decoration: none;
    line-height: 1;
}

.sidenav-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

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

.sidenav-list li {
    border-bottom: 1px solid #f8fafc;
}

.sidenav-list li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--color-text-main);
    transition: background 0.2s;
    font-weight: 500;
}

.sidenav-list li a:hover {
    background-color: #f8fafc;
    color: var(--color-primary);
}

.sidenav-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    margin-right: 12px;
    letter-spacing: 0.5px;
}

.badge-theme {
    background-color: #eff6ff;
    color: #3b82f6;
}

.badge-author {
    background-color: #eef2ff;
    color: #6366f1;
}

.sidenav-text {
    font-size: 0.95rem;
}
/* X (Twitter) Icon Styling */
.fa-x-twitter {
    background-color: #000 !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    border-radius: 4px;
}

.fa-x-twitter.redondos {
    border-radius: 50% !important;
}

/* X Alignment Fix */
.fa-x-twitter {
    padding-top: 3px !important;
}
