/* =========================================================
   COEURS BLOG — STYLE PRINCIPAL
   static/css/style.css
   ========================================================= */


/* =========================================================
   1. VARIABLES
   ========================================================= */

:root {
    --bg-main: #080808;
    --bg-secondary: #0f0f0f;
    --bg-card: #141414;
    --bg-card-hover: #191919;
    --bg-input: #101010;

    --red: #e50914;
    --red-light: #ff2633;
    --red-dark: #a80710;

    --white: #ffffff;
    --text: #f5f5f5;
    --text-secondary: #b8b8b8;
    --text-muted: #777777;

    --border: rgba(255, 255, 255, 0.08);
    --border-red: rgba(229, 9, 20, 0.45);

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
    --shadow-red: 0 10px 35px rgba(229, 9, 20, 0.18);

    --container: 1200px;
}


/* =========================================================
   2. RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top right,
            rgba(229, 9, 20, 0.08),
            transparent 30%
        ),
        var(--bg-main);
    color: var(--text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body.cart-open,
body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   3. SELECTION
   ========================================================= */

::selection {
    background: var(--red);
    color: white;
}


/* =========================================================
   4. SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: #080808;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red);
}


/* =========================================================
   5. CONTAINERS
   ========================================================= */

.container,
.page-container,
.main-container {
    width: min(94%, var(--container));
    margin: 0 auto;
}


/* =========================================================
   6. HEADER
   ========================================================= */

.site-header,
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(8, 8, 8, 0.92);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner,
.navbar,
.nav-container {
    width: min(94%, var(--container));
    min-height: 72px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}


/* =========================================================
   7. LOGO
   ========================================================= */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: white;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo::before {
    content: "♥";

    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    background: linear-gradient(
        135deg,
        var(--red),
        var(--red-dark)
    );

    border-radius: 10px;

    color: white;
    font-size: 18px;

    box-shadow:
        0 5px 20px rgba(229, 9, 20, 0.3);
}


/* =========================================================
   8. NAVIGATION
   ========================================================= */

.desktop-nav,
.desktop-navigation,
.header-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.desktop-nav a,
.desktop-navigation a,
.header-nav a {
    position: relative;

    padding: 9px 11px;

    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;

    border-radius: 8px;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-navigation a:hover,
.header-nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.desktop-nav a.active,
.desktop-navigation a.active,
.header-nav a.active {
    color: white;
}

.desktop-nav a.active::after,
.desktop-navigation a.active::after,
.header-nav a.active::after {
    content: "";

    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;

    height: 2px;

    background: var(--red);
    border-radius: 999px;
}


/* =========================================================
   9. MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-button,
.menu-toggle,
.hamburger {
    display: none;

    width: 44px;
    height: 44px;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--bg-card);
    color: white;
}


/* =========================================================
   10. MOBILE MENU
   ========================================================= */

.mobile-menu {
    position: fixed;
    top: 72px;
    right: 0;

    z-index: 999;

    width: min(360px, 90vw);
    height: calc(100vh - 72px);

    padding: 20px;

    background: #0b0b0b;
    border-left: 1px solid var(--border);

    overflow-y: auto;

    transform: translateX(100%);
    opacity: 0;

    pointer-events: none;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    display: flex;
    align-items: center;

    min-height: 48px;
    padding: 12px 14px;

    color: var(--text-secondary);

    border-radius: 10px;

    margin-bottom: 5px;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: white;
    background: rgba(229, 9, 20, 0.12);
}


/* =========================================================
   11. MAIN
   ========================================================= */

main {
    min-height: calc(100vh - 150px);
}

section {
    position: relative;
}


/* =========================================================
   12. HERO
   ========================================================= */

.hero-section,
.page-hero {
    position: relative;

    margin: 30px auto;
    padding: 75px 45px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(229, 9, 20, 0.18),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #151515,
            #0b0b0b
        );

    border: 1px solid var(--border);
    border-radius: var(--radius-xl);

    overflow: hidden;
}

.hero-section::before,
.page-hero::before {
    content: "";

    position: absolute;
    top: -100px;
    left: -100px;

    width: 250px;
    height: 250px;

    background: rgba(229, 9, 20, 0.08);

    border-radius: 50%;
    filter: blur(30px);
}

.hero-title,
.page-hero h1 {
    position: relative;

    max-width: 850px;

    color: white;

    font-size: clamp(2.3rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero-title span,
.page-hero h1 span {
    color: var(--red);
}

.hero-subtitle,
.page-hero p {
    position: relative;

    max-width: 700px;
    margin-top: 18px;

    color: var(--text-secondary);
    font-size: 1.05rem;
}


/* =========================================================
   13. HERO ACTIONS
   ========================================================= */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 30px;
}


/* =========================================================
   14. BUTTONS
   ========================================================= */

.btn,
button {
    border: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    padding: 10px 18px;

    border-radius: 10px;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--red),
        var(--red-dark)
    );

    color: white;

    box-shadow:
        0 8px 25px rgba(229, 9, 20, 0.2);
}

.btn-primary:hover {
    box-shadow:
        0 12px 30px rgba(229, 9, 20, 0.3);
}

.btn-secondary {
    background: #1c1c1c;
    color: white;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #242424;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid var(--border-red);
}

.btn-outline:hover {
    background: rgba(229, 9, 20, 0.1);
}

.btn-danger {
    background: var(--danger);
    color: white;
}


/* =========================================================
   15. SECTIONS
   ========================================================= */

.section {
    padding: 35px 0;
}

.section-header,
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 22px;
}

.section-title {
    color: white;
    font-size: 1.7rem;
    font-weight: 850;
}

.section-description {
    margin-top: 5px;
    color: var(--text-muted);
}


/* =========================================================
   16. GRILLES
   ========================================================= */

.posts-grid,
.articles-grid,
.events-grid,
.challenges-grid,
.questions-grid,
.discussions-grid,
.photos-grid,
.badges-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}


/* =========================================================
   17. CARTES
   ========================================================= */

.post-card,
.article-card,
.event-card,
.challenge-card,
.question-card,
.discussion-card,
.photo-card,
.badge-card {
    min-width: 0;

    background: linear-gradient(
        145deg,
        #171717,
        #101010
    );

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    overflow: hidden;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.post-card:hover,
.article-card:hover,
.event-card:hover,
.challenge-card:hover,
.question-card:hover,
.discussion-card:hover,
.photo-card:hover,
.badge-card:hover {
    border-color: rgba(229, 9, 20, 0.3);
    box-shadow: var(--shadow-red);
}


/* =========================================================
   18. CARD CONTENT
   ========================================================= */

.card-content,
.post-content,
.article-card-content,
.event-card-content,
.challenge-card-content {
    padding: 20px;
}

.card-title,
.post-title,
.article-card-title,
.event-card-title,
.challenge-card-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
}

.card-description,
.post-excerpt,
.article-card-excerpt {
    margin-top: 8px;

    color: var(--text-secondary);
    font-size: 0.9rem;

    line-height: 1.6;
}


/* =========================================================
   19. IMAGES
   ========================================================= */

.article-card-image,
.article-image,
.event-card-image,
.photo-card-image {
    width: 100%;
    height: 220px;

    object-fit: cover;

    background: #0b0b0b;
}

.photo-card-image {
    aspect-ratio: 1 / 1;
    height: auto;
}


/* =========================================================
   20. AVATAR
   ========================================================= */

.avatar,
.user-avatar,
.profile-avatar {
    flex-shrink: 0;

    width: 45px;
    height: 45px;

    object-fit: cover;

    border-radius: 50%;

    background: #222;

    border: 2px solid rgba(255, 255, 255, 0.08);
}

.avatar-placeholder {
    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            var(--red),
            var(--red-dark)
        );

    color: white;
    font-weight: 800;
}


/* =========================================================
   21. AUTHOR
   ========================================================= */

.author-row,
.post-author,
.article-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-name,
.username {
    color: white;
    font-weight: 700;
}

.author-date,
.post-date,
.article-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}


/* =========================================================
   22. TAGS
   ========================================================= */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 14px;
}

.tag,
.category-tag {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    background: rgba(229, 9, 20, 0.1);

    border: 1px solid rgba(229, 9, 20, 0.2);
    border-radius: 999px;

    color: #ff7b82;

    font-size: 0.75rem;
    font-weight: 700;
}


/* =========================================================
   23. STATS
   ========================================================= */

.stats-grid,
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;

    margin: 25px 0;
}

.stat-card {
    padding: 22px;

    background: var(--bg-card);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    text-align: center;
}

.stat-number {
    color: white;
    font-size: 2rem;
    font-weight: 900;
}

.stat-number.red {
    color: var(--red);
}

.stat-label {
    margin-top: 3px;

    color: var(--text-muted);
    font-size: 0.8rem;
}


/* =========================================================
   24. SIDEBAR / LAYOUT
   ========================================================= */

.content-layout,
.page-layout,
.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 25px;
}

.main-content {
    min-width: 0;
}

.sidebar {
    min-width: 0;
}

.sidebar-card {
    padding: 20px;

    margin-bottom: 18px;

    background: var(--bg-card);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.sidebar-card h3 {
    margin-bottom: 15px;

    color: white;
    font-size: 1rem;
}


/* =========================================================
   25. FORMS
   ========================================================= */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #ddd;

    font-size: 0.88rem;
    font-weight: 700;
}

.form-row,
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

input,
textarea,
select {
    width: 100%;

    padding: 12px 14px;

    background: var(--bg-input);

    color: white;

    border: 1px solid var(--border);
    border-radius: 10px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: #666;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--red);

    box-shadow:
        0 0 0 3px rgba(229, 9, 20, 0.1);
}

textarea {
    min-height: 160px;
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 20px;
}


/* =========================================================
   26. SEARCH
   ========================================================= */

.search-bar,
.search-container {
    position: relative;

    width: 100%;
}

.search-bar input,
.search-container input {
    padding-left: 42px;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 14px;

    transform: translateY(-50%);

    color: var(--text-muted);
}


/* =========================================================
   27. FILTERS
   ========================================================= */

.filter-buttons,
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button,
.filter-btn {
    padding: 8px 13px;

    background: #161616;

    border: 1px solid var(--border);
    border-radius: 999px;

    color: var(--text-secondary);

    font-size: 0.8rem;
    font-weight: 700;
}

.filter-button:hover,
.filter-button.active,
.filter-btn:hover,
.filter-btn.active {
    background: rgba(229, 9, 20, 0.12);
    border-color: rgba(229, 9, 20, 0.35);
    color: white;
}


/* =========================================================
   28. PROGRESS BAR
   ========================================================= */

.progress {
    width: 100%;
    height: 8px;

    background: #252525;

    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;

    background: linear-gradient(
        90deg,
        var(--red-dark),
        var(--red-light)
    );

    border-radius: inherit;
}


/* =========================================================
   29. XP
   ========================================================= */

.xp-bar {
    margin-top: 10px;
}

.xp-text {
    display: flex;
    justify-content: space-between;

    margin-bottom: 7px;

    color: var(--text-secondary);
    font-size: 0.8rem;
}


/* =========================================================
   30. BADGES
   ========================================================= */

.badge-card {
    padding: 22px;

    text-align: center;
}

.badge-icon {
    display: grid;
    place-items: center;

    width: 70px;
    height: 70px;

    margin: 0 auto 14px;

    background:
        linear-gradient(
            135deg,
            rgba(229, 9, 20, 0.2),
            rgba(229, 9, 20, 0.04)
        );

    border: 1px solid rgba(229, 9, 20, 0.25);
    border-radius: 50%;

    font-size: 2rem;
}

.badge-card.locked {
    opacity: 0.45;
    filter: grayscale(0.6);
}


/* =========================================================
   31. NOTIFICATIONS
   ========================================================= */

.notification-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    padding: 16px;

    margin-bottom: 10px;

    background: var(--bg-card);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.notification-card.unread {
    border-left: 3px solid var(--red);
    background: rgba(229, 9, 20, 0.05);
}

.notification-icon {
    display: grid;
    place-items: center;

    flex-shrink: 0;

    width: 42px;
    height: 42px;

    background: rgba(229, 9, 20, 0.12);

    border-radius: 50%;

    color: var(--red-light);
}


/* =========================================================
   32. COMMENTS
   ========================================================= */

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment {
    padding: 15px;

    background: #111;

    border: 1px solid var(--border);
    border-radius: 12px;
}

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

.comment-content {
    margin-top: 10px;

    color: var(--text-secondary);

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


/* =========================================================
   33. ACTIONS
   ========================================================= */

.post-actions,
.article-actions,
.question-actions,
.discussion-actions,
.event-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;

    margin-top: 18px;
}

.action-button,
.like-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    min-height: 38px;
    padding: 7px 11px;

    background: #191919;

    border: 1px solid var(--border);
    border-radius: 9px;

    color: var(--text-secondary);
}

.action-button:hover,
.like-button:hover {
    color: white;
    border-color: rgba(229, 9, 20, 0.3);
}

.like-button.liked {
    color: var(--red-light);
}


/* =========================================================
   34. PROFILE
   ========================================================= */

.profile-header {
    position: relative;

    padding: 35px;

    background:
        radial-gradient(
            circle at top right,
            rgba(229, 9, 20, 0.15),
            transparent 40%
        ),
        #121212;

    border: 1px solid var(--border);
    border-radius: var(--radius-xl);

    overflow: hidden;
}

.profile-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 105px;
    height: 105px;

    border: 3px solid var(--red);
}

.profile-name {
    color: white;

    font-size: 1.8rem;
    font-weight: 900;
}

.profile-bio {
    margin-top: 5px;

    color: var(--text-secondary);
}


/* =========================================================
   35. PODIUM
   ========================================================= */

.leaderboard-podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    gap: 15px;

    margin-bottom: 25px;
}

.podium-card {
    padding: 25px 15px;

    background: var(--bg-card);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    text-align: center;
}

.podium-card:first-child {
    transform: translateY(-15px);
    border-color: rgba(229, 9, 20, 0.35);
}

.podium-position {
    color: var(--red);
    font-size: 1.8rem;
    font-weight: 900;
}


/* =========================================================
   36. RANKING
   ========================================================= */

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 16px;

    background: var(--bg-card);

    border: 1px solid var(--border);
    border-radius: 12px;
}

.ranking-position {
    width: 35px;

    color: var(--text-muted);
    font-weight: 900;

    text-align: center;
}

.ranking-user {
    flex: 1;
    min-width: 0;
}

.ranking-username {
    color: white;
    font-weight: 700;
}

.ranking-xp {
    color: var(--red-light);
    font-weight: 800;
}


/* =========================================================
   37. EMPTY STATES
   ========================================================= */

.empty-state {
    padding: 55px 20px;

    background: var(--bg-card);

    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);

    text-align: center;
}

.empty-state-icon {
    margin-bottom: 12px;

    color: var(--text-muted);
    font-size: 2.5rem;
}

.empty-state h3 {
    color: white;
    font-size: 1.2rem;
}

.empty-state p {
    max-width: 500px;
    margin: 7px auto 0;

    color: var(--text-muted);
}


/* =========================================================
   38. FLASH MESSAGES
   ========================================================= */

.flash-container {
    position: fixed;
    top: 85px;
    right: 20px;

    z-index: 2000;

    width: min(400px, calc(100% - 40px));
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px 16px;

    margin-bottom: 10px;

    background: #161616;

    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    border-radius: 10px;

    color: white;

    box-shadow: var(--shadow);
}

.flash-message.success {
    border-left-color: var(--success);
}

.flash-message.error,
.flash-message.danger {
    border-left-color: var(--danger);
}

.flash-message.warning {
    border-left-color: var(--warning);
}


/* =========================================================
   39. TOAST
   ========================================================= */

.toast,
.share-toast,
.success-toast {
    position: fixed;
    bottom: 25px;
    left: 50%;

    z-index: 3000;

    padding: 12px 18px;

    background: #181818;

    border: 1px solid var(--border);
    border-radius: 10px;

    color: white;

    box-shadow: var(--shadow);

    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
}

.toast.show,
.share-toast.show,
.success-toast.show {
    opacity: 1;
}


/* =========================================================
   40. MODALES
   ========================================================= */

.modal-overlay,
.modal-backdrop {
    position: fixed;
    inset: 0;

    z-index: 2500;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.78);

    backdrop-filter: blur(6px);
}

.modal {
    width: min(600px, 100%);
    max-height: 90vh;

    padding: 25px;

    background: #121212;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    overflow-y: auto;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}

.modal-header h2 {
    color: white;
}


/* =========================================================
   41. FOOTER
   ========================================================= */

.site-footer,
footer {
    margin-top: 70px;

    background: #050505;

    border-top: 1px solid var(--border);
}

.footer-grid,
.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;

    padding: 50px 0 35px;
}

.footer-column h3,
.footer-column h4 {
    margin-bottom: 13px;

    color: white;
}

.footer-column p,
.footer-column a {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-column a {
    display: block;
    margin-bottom: 7px;
}

.footer-column a:hover {
    color: var(--red-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 0;

    border-top: 1px solid var(--border);

    color: var(--text-muted);
    font-size: 0.8rem;
}

.developer-credit {
    color: white;
    font-weight: 800;
}

.developer-credit span {
    color: var(--red);
}


/* =========================================================
   42. ARTICLE
   ========================================================= */

.article-content,
.question-content,
.discussion-content {
    color: #d0d0d0;

    font-size: 1rem;
    line-height: 1.8;

    overflow-wrap: anywhere;
}

.article-content h2,
.article-content h3,
.question-content h2,
.question-content h3,
.discussion-content h2,
.discussion-content h3 {
    margin: 25px 0 10px;

    color: white;
}

.article-content p,
.question-content p,
.discussion-content p {
    margin-bottom: 15px;
}

.article-content img,
.question-content img,
.discussion-content img {
    max-width: 100%;
    height: auto;

    margin: 20px 0;

    border-radius: 12px;
}


/* =========================================================
   43. CODE
   ========================================================= */

code {
    padding: 3px 6px;

    background: #1a1a1a;

    border-radius: 5px;

    color: #ff7b82;
}

pre {
    max-width: 100%;

    padding: 18px;

    margin: 15px 0;

    background: #080808;

    border: 1px solid var(--border);
    border-radius: 10px;

    overflow-x: auto;
}

pre code {
    padding: 0;

    background: transparent;
}


/* =========================================================
   44. HR
   ========================================================= */

hr {
    height: 1px;

    margin: 25px 0;

    border: 0;

    background: var(--border);
}


/* =========================================================
   45. UTILITY
   ========================================================= */

.text-red {
    color: var(--red-light);
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.no-scroll {
    overflow: hidden;
}

.w-full {
    width: 100%;
}


/* =========================================================
   46. FOCUS ACCESSIBILITY
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--red-light);
    outline-offset: 3px;
}


.owner-rainbow-text {
    background: linear-gradient(
        90deg,
        #ff0000,
        #ff8a00,
        #ffff00,
        #00ff00,
        #00ffff,
        #0088ff,
        #8a2be2,
        #ff00aa,
        #ff0000
    );

    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: ownerRainbowText 5s linear infinite;
    font-weight: 800;
}

@keyframes ownerRainbowText {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}


.owner-rainbow-text {
    background: linear-gradient(
        90deg,
        #ff0000,
        #ff8a00,
        #ffff00,
        #00ff00,
        #00ffff,
        #0088ff,
        #8a2be2,
        #ff00aa,
        #ff0000
    );

    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: ownerRainbowText 5s linear infinite;
}

@keyframes ownerRainbowText {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

.admin-menu-link {
    color: #ff3b3b !important;
    font-weight: 800;
    text-decoration: none;
    transition: 0.25s ease;
}

.admin-menu-link:hover {
    color: #ff7070 !important;
    transform: translateY(-1px);
}