﻿
body {
    position: relative;
    background-color: #121212;
    overflow: hidden;
    overflow-y: auto;
    margin: 0;
}

.page-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Make all columns same height */
    gap: 20px; /* Space between columns */
    margin: 20px auto;
    max-width: 1200px; /* Optional: page max width */
}

.confession-card {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.confession-card {
    background-color: #1e1e1e;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
    border-radius: 4px;
}

.confession-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 204, 0.2);
}

.confession-text {
    color: #e8e8e8; /* brighter text */
    line-height: 1.6;
    letter-spacing: 0.3px;
}


.confession-meta {
    color: #bdbdbd;
}

.ad-space {
    background-color: #2a2a2a;
    color: #888;
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
}

.left-ad img, .right-ad img {
    width: 100%;
    height: auto; /* Preserve ad aspect ratio */
}

.bottom-ad {
    width: 100%;
    margin-top: 20px;
}

.orb-background {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    margin-left: -150px;
    margin-top: -150px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #00ffcc 0%, #000000 80%);
    box-shadow: 0 0 60px 20px #00ffcc;
    animation: floatOrb 8s ease-in-out infinite alternate, glowPulse 3s ease-in-out infinite;
    z-index: -1; /* behind all content */
}

/* Floating up and down */
@keyframes floatOrb {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }

    100% {
        transform: translateY(0px) scale(1);
    }
}

/* Glow pulsating */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 60px 20px #00ffcc;
    }

    50% {
        box-shadow: 0 0 80px 25px #00ffcc;
    }

    100% {
        box-shadow: 0 0 60px 20px #00ffcc;
    }
}

.heading-with-image {
    display: flex;
    align-items: center;
    gap: 15px; /* space between image and heading */
    margin-bottom: 20px;
}

.heading-with-image .heading-image {
    width: 60px; /* adjust size as needed */
    height: 60px;
    object-fit: cover;
    border-radius: 50%; /* optional, for circular effect */
}
.heading-with-image h2 {
    color: #f5d742; /* golden glow */
    text-shadow: 0 0 10px #f5d742, 0 0 20px #f5d742;
    font-size: 2em;
}

.confession-meta {
    font-size: 0.75em; /* slightly smaller than your current 0.8em */
    color: #aaa; /* keeps it readable but subtle */
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.confession-meta .user {
    color: #5fffe3; /* softer neon */
    text-shadow: 0 0 6px rgba(95, 255, 227, 0.4);
}

.confession-meta .anonymous {
    font-style: italic;
    color: #888; /* muted for anonymous */
}

.confession-meta .time-posted {
    font-size: 0.7em;
    color: #666; /* even more subtle for timestamp */
}
.top-nav {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 15px;
    align-items: center;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.top-nav .nav-link {
    color: #00ffcc;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.top-nav .nav-link:hover {
    background-color: #00ffcc;
    color: #000;
}

.top-nav .welcome-text {
    color: #00ffcc; /* bright neon */
    font-weight: bold;
    font-size: 1.2em; /* slightly bigger */
    background-color: rgba(0, 255, 204, 0.1); /* subtle highlight */
    padding: 4px 8px;
    border-radius: 6px;
    text-shadow: 0 0 8px #00ffcc; /* glowing effect */
}

.confessions-feed {
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.confession-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
    transition: box-shadow 0.3s ease;
}

.confession-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px 14px;
    background-color: #121212;
    border: 1px solid #00ffcc;
    border-radius: 8px;
    color: #f0f0f0;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    resize: vertical;
    transition: all 0.2s ease-in-out;
}

.confession-form button {
    align-self: flex-end;
    background: linear-gradient(135deg, #00ffcc, #00b3b3);
    border: none;
    color: #000;
    font-weight: bold;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 255, 204, 0.3);
}

.confession-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 255, 204, 0.5);
    background: linear-gradient(135deg, #f5d742, #ffea00);
}
.confession-form textarea:focus {
    border-color: #f5d742;
    box-shadow: 0 0 8px #f5d742;
    outline: none;
    background-color: #1c1c1c;
}
.user {
    color: #00ffcc;
    font-weight: 600;
}

.like-btn {
    background-color: #ff4d6d;
    color: #fff;
}

.like-btn:hover {
    box-shadow: 0 0 8px #ff4d6d;
}

.replies-section {
    margin-left: 15px;
    margin-top: 10px;
}

.reply {
    background-color: #323232; /* instead of #2a2a2a */
    color: #e0e0e0;
    border-left: 3px solid rgba(0, 255, 204, 0.4);
}


.reply-time {
    font-size: 0.7em;
    color: #888;
    margin-top: 3px;
}

.toggle-reply-btn {
    background: none;
    border: none;
    color: #00ffcc;
    cursor: pointer;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 5px;
}


.reply-form input[type="text"] {
    flex: 1;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: #1a1a1a;
    color: #fff;
}

.reply-form button {
    padding: 6px 12px;
    background-color: #00ffcc;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #000;
    font-weight: bold;
}

.reply-form button:hover {
    box-shadow: 0 0 10px #00ffcc;
}
.toggle-reply-btn {
    background: none;
    border: none;
    color: #00ffcc;
    cursor: pointer;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 5px;
}
.actions-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}
.like-btn, .toggle-reply-btn {
    padding: 6px 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}
/* 🖥 DESKTOP: sticky side ads */
.left-ad,
.right-ad {
    position: sticky;
    top: 90px; /* below top-nav */
    align-self: flex-start;
}

/* 📱 MOBILE FIXES */
@media (max-width: 768px) {

    .page-wrapper {
        flex-direction: column; /* stack everything vertically */
        height: auto; /* allow content to grow */
        gap: 10px;
        padding: 10px;
    }

    /* 📱 MOBILE: ads behave normally (no sticky, no reorder) */
    .left-ad,
    .right-ad {
        position: relative; /* disable sticky on mobile */
        top: auto;
        width: 100%;
        margin: 10px 0;
        text-align: center;
        order: 0; /* keep natural document flow */
    }

        .left-ad img,
        .right-ad img {
            max-width: 100%;
            height: auto;
        }


    .confessions-feed {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .top-nav {
        top: 5px;
        right: 10px;
        font-size: 0.8em;
        gap: 8px;
    }

    .heading-with-image h2 {
        font-size: 1.4em;
    }

    .heading-with-image .heading-image {
        width: 45px;
        height: 45px;
    }

    /* Orb background scaled down */
    .orb-background {
        width: 180px;
        height: 180px;
        margin-left: -90px;
        margin-top: -90px;
        opacity: 0.6;
    }

    .confession-card {
        background-color: #262626; /* lighter than #1e1e1e */
        border-left: 4px solid #00ffcc;
        box-shadow: 0 0 18px rgba(0, 255, 204, 0.18);
    }


    .actions-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .reply-form input[type="text"] {
        width: 100%;
    }
}