/* ---------------------------------------------------------
   WAKING EXISTENCE — CORAL REEF CANDY SEA THEME
   Full Forum Theme
--------------------------------------------------------- */

/* Base */
body.forum-coral-reef.index-page {
    background: url("/Forum/assets/img/backgrounds/candycoralsea.GIF")
                center center / cover no-repeat fixed;
}
body.forum-coral-reef {
    font-family: 'Poppins', sans-serif;
    background:
        radial-gradient(circle at top, #071824, #020910),
        radial-gradient(circle at bottom, #06252b, #020910);
    background-blend-mode: screen;
    color: #f4fbff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Main container */
#forum-main {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
}

/* Header */
#forum-header {
    text-align: center;
    padding: 24px 16px;
    background: linear-gradient(
        135deg,
        rgba(255, 138, 217, 0.25),
        rgba(122, 240, 255, 0.18),
        rgba(169, 139, 255, 0.22)
    );
    box-shadow: 0 0 30px rgba(122, 240, 255, 0.4);
}

.forum-title {
    font-size: 2.3rem;
    color: #ffffff;
    text-shadow:
        0 0 18px rgba(255, 182, 255, 1),
        0 0 30px rgba(122, 240, 255, 0.9);
}

/* Section titles */
.section-title h2,
.section-title p {
    text-align: center;
    color: #fdfbff;
    text-shadow:
        0 0 10px rgba(255, 182, 255, 0.9),
        0 0 20px rgba(125, 240, 255, 0.8);
}

/* Category grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.category-card {
    display: block;
    padding: 20px;
    border-radius: 18px;
    background: radial-gradient(circle at top,
                rgba(255, 138, 217, 0.18),
                rgba(122, 240, 255, 0.12));
    border: 1px solid rgba(195, 244, 255, 0.7);
    text-align: center;
    color: #fdfbff;
    box-shadow:
        0 0 20px rgba(122, 240, 255, 0.4),
        0 0 30px rgba(169, 139, 255, 0.4);
    transition: 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow:
        0 0 30px rgba(122, 240, 255, 0.8),
        0 0 45px rgba(255, 138, 217, 0.9);
}

/* Buttons */
button,
a.button,
.new-thread-button,
.reply-button,
.submit-thread-button {
    background: linear-gradient(135deg,
        #ff8ad9,
        #7df0ff,
        #a98bff
    );
    color: #041018;
    padding: 12px 22px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    box-shadow:
        0 0 14px rgba(125, 240, 255, 0.8),
        0 0 26px rgba(255, 138, 217, 0.7);
    transition: 0.2s ease;
}

button:hover,
a.button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 0 22px rgba(125, 240, 255, 1),
        0 0 34px rgba(255, 138, 217, 0.9);
}

/* Cards / panels */
.magic-card,
.thread-item,
.thread-row,
.thread-post,
.reply-row,
.profile-card,
.stat-card,
.messages-sidebar,
.messages-chat,
.friend-card,
.current-level-card,
.achievement-card,
.new-thread-form,
.oracle-form {
    background: radial-gradient(circle at top left,
                rgba(255, 138, 217, 0.16),
                rgba(122, 240, 255, 0.08))
                border-box;
    border-radius: 18px;
    border: 1px solid rgba(195, 244, 255, 0.6);
    box-shadow:
        0 0 24px rgba(122, 240, 255, 0.35),
        0 0 40px rgba(169, 139, 255, 0.35);
    backdrop-filter: blur(12px);
    transition: 0.25s ease;
}

.thread-row:hover,
.thread-item:hover,
.reply-row:hover,
.friend-card:hover,
.stat-card:hover,
.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 32px rgba(122, 240, 255, 0.6),
        0 0 50px rgba(255, 138, 217, 0.7);
}

/* Avatars */
.profile-avatar,
.friend-avatar,
.conversation-avatar,
.chat-avatar,
.reply-avatar,
.author-avatar img {
    border-radius: 50%;
    border: 3px solid rgba(195, 244, 255, 0.9);
    box-shadow:
        0 0 18px rgba(122, 240, 255, 0.9),
        0 0 26px rgba(255, 138, 217, 0.8);
}

/* XP bars */
.xp-bar,
.current-xp-bar {
    background: rgba(3, 18, 28, 0.8);
    border-radius: 999px;
    overflow: hidden;
}

.xp-fill,
.current-xp-fill {
    background: linear-gradient(90deg,
        #ff8ad9,
        #7df0ff,
        #a98bff,
        #6afcc2
    );
    box-shadow:
        0 0 16px rgba(122, 240, 255, 0.9),
        0 0 24px rgba(255, 138, 217, 0.9);
}

/* Chat bubbles */
.chat-bubble.from-you {
    background: radial-gradient(circle at top,
        rgba(122, 240, 255, 0.35),
        rgba(3, 18, 28, 0.9));
    border: 1px solid rgba(195, 244, 255, 0.9);
}

.chat-bubble.from-them {
    background: radial-gradient(circle at top,
        rgba(255, 138, 217, 0.25),
        rgba(3, 18, 28, 0.9));
    border: 1px solid rgba(255, 182, 255, 0.7);
}

.forum-directory {
    text-align: center;
    margin-top: 60px;
}

.directory-title {
    font-size: 2.2em;
    color: #c3f4ff;
    text-shadow: 0 0 20px rgba(122,240,255,0.6);
}

.directory-subtitle {
    color: #a9bfff;
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    padding: 0 40px;
}

.category-card {
    background: radial-gradient(circle at top left,
                rgba(255,138,217,0.16),
                rgba(122,240,255,0.08));
    border: 1px solid rgba(195,244,255,0.6);
    border-radius: 16px;
    padding: 24px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s ease;
    box-shadow: 0 0 24px rgba(122,240,255,0.35),
                0 0 40px rgba(169,139,255,0.35);
}

.category-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255,138,217,0.45),
                0 0 60px rgba(122,240,255,0.45);
}

/* Footer */
#forum-footer {
    text-align: center;
    padding: 18px 10px;
    font-size: 0.9rem;
    opacity: 0.85;
    color: #c3f4ff;
}
