/* ==========================================================================
   Cocksuck Club — Super Bubbly Bimbo Pink Theme
   Lisa Frank meets adult content. Maximum pink. Zero subtlety.
   Now with DARK MODE because we contain multitudes.
   ========================================================================== */

/* --- CSS Variables (Light Theme — default) --- */
:root {
    --pink-hot: #FF69B4;
    --pink-baby: #FFB6C1;
    --pink-deep: #FF1493;
    --pink-magenta: #C71585;
    --pink-blush: #FFF0F5;
    --pink-light: #FFE4EC;
    --white: #ffffff;
    --text: #333333;
    --text-light: #777777;
    --text-muted: #999999;
    --shadow-pink: rgba(255, 105, 180, 0.15);
    --shadow-deep: rgba(255, 20, 147, 0.25);
    --radius: 16px;
    --radius-sm: 10px;
    --font-heading: 'Bubblegum Sans', cursive;
    --font-body: 'Nunito', sans-serif;
    --transition: 0.3s ease;

    /* Themeable surfaces */
    --bg-body: #FFF0F5;
    --bg-card: #ffffff;
    --bg-header: linear-gradient(135deg, #ffffff 0%, #FFE4EC 100%);
    --bg-header-border: #FFB6C1;
    --bg-footer: linear-gradient(135deg, #FF1493 0%, #C71585 100%);
    --bg-input: #ffffff;
    --bg-blockquote: #FFE4EC;
    --bg-tag: #FFE4EC;
    --bg-community-feed: linear-gradient(180deg, #FFF0F5 0%, white 100%);
    --bg-nav-dropdown: #ffffff;
    --bg-age-gate-box: rgba(255,255,255,0.95);

    --border-input: #FFB6C1;
    --border-card: transparent;
    --border-divider: #FFE4EC;

    --nav-link-color: #333333;
    --card-placeholder-bg: linear-gradient(135deg, #FFE4EC, #FFB6C1);

    --scrollbar-track: #FFE4EC;
    --scrollbar-thumb: linear-gradient(180deg, #FF69B4, #FF1493);

    --auth-box-shadow: rgba(255, 105, 180, 0.15);
    --auth-error-bg: #ffe0e6;
    --auth-error-border: #FFB6C1;
    --auth-error-text: #c0392b;

    --selection-bg: #FF69B4;
    --selection-color: #ffffff;

    /* Age gate */
    --age-gate-title: #FF1493;
    --age-gate-subtitle: #999;
    --age-gate-disclaimer: #bbb;
}

/* --- Dark Theme Override --- */
body.dark-theme {
    --pink-hot: #FF69B4;
    --pink-baby: #4a2040;
    --pink-deep: #FF1493;
    --pink-magenta: #9b59b6;
    --pink-blush: #1a0a1a;
    --pink-light: #2d1233;
    --white: #1e0e1e;
    --text: #FFD1E8;
    --text-light: #CC9AB5;
    --text-muted: #8a6080;
    --shadow-pink: rgba(139, 0, 139, 0.3);
    --shadow-deep: rgba(255, 20, 147, 0.25);

    --bg-body: #0d050d;
    --bg-card: #1e0e1e;
    --bg-header: linear-gradient(135deg, #150a18 0%, #1e0e1e 100%);
    --bg-header-border: #3d1845;
    --bg-footer: linear-gradient(135deg, #1a0a1a 0%, #2d1233 100%);
    --bg-input: #1a0a1a;
    --bg-blockquote: #2d1233;
    --bg-tag: rgba(155, 89, 182, 0.2);
    --bg-community-feed: linear-gradient(180deg, #0d050d 0%, #1a0a1a 100%);
    --bg-nav-dropdown: #1e0e1e;
    --bg-age-gate-box: rgba(30, 14, 30, 0.95);

    --border-input: #4a2040;
    --border-card: #3d1845;
    --border-divider: #3d1845;

    --nav-link-color: #CC9AB5;
    --card-placeholder-bg: linear-gradient(135deg, #2d1233, #3d1845);

    --scrollbar-track: #1a0a1a;
    --scrollbar-thumb: linear-gradient(180deg, #9b59b6, #8B008B);

    --auth-box-shadow: rgba(139, 0, 139, 0.2);
    --auth-error-bg: #3d1020;
    --auth-error-border: #6d1840;
    --auth-error-text: #ff6b8a;

    --selection-bg: #9b59b6;
    --selection-color: #ffffff;

    --age-gate-title: #FF69B4;
    --age-gate-subtitle: #8a6080;
    --age-gate-disclaimer: #5a3050;
}

/* --- Smooth theme transition --- */
body,
body *,
body *::before,
body *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
/* Exclude things that shouldn't transition */
canvas, video, img, iframe,
#sparkle-canvas, .float-heart,
.nav-toggle span,
.feed-media, .feed-media * {
    transition: none !important;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--pink-hot) var(--scrollbar-track);
}

/* Pink gradient scrollbar for Webkit */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb {
    background: var(--pink-hot);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--pink-magenta); }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg-body);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

a { color: var(--pink-deep); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pink-magenta); }

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

/* --- Sparkle Canvas --- */
#sparkle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* --- Floating Hearts --- */
#floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.float-heart {
    position: absolute;
    bottom: -30px;
    animation: floatUp linear infinite;
    pointer-events: none;
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.3; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-110vh) rotate(360deg) scale(0.5); opacity: 0; }
}

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }

/* --- Header --- */
.site-header {
    background: var(--bg-header);
    border-bottom: 3px solid var(--bg-header-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon { font-size: 1.8rem; }

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--pink-deep);
    background: linear-gradient(135deg, var(--pink-hot), var(--pink-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav { position: relative; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--pink-deep);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: var(--nav-link-color);
    transition: all var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
    color: #ffffff;
}

/* --- Theme Toggle Button --- */
.theme-toggle {
    background: none;
    border: 2px solid var(--pink-hot);
    border-radius: 50px;
    cursor: pointer;
    padding: 0.35rem 0.75rem;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.theme-toggle:hover {
    background: rgba(255, 105, 180, 0.15);
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.3);
}
.theme-toggle .light-icon,
.theme-toggle .dark-icon {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Light mode: show light icon, hide dark icon */
.theme-toggle .dark-icon {
    display: none;
}
body.dark-theme .theme-toggle .light-icon {
    display: none;
}
body.dark-theme .theme-toggle .dark-icon {
    display: inline;
}
body.dark-theme .theme-toggle {
    border-color: var(--pink-magenta);
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.3);
}
body.dark-theme .theme-toggle:hover {
    background: rgba(155, 89, 182, 0.2);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
    color: #ffffff;
    border-color: var(--pink-deep);
    box-shadow: 0 4px 15px var(--shadow-deep);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-deep);
    color: #ffffff;
}

.btn-outline {
    background: var(--bg-card);
    color: var(--pink-deep);
    border-color: var(--pink-baby);
}
.btn-outline:hover {
    background: var(--pink-light);
    border-color: var(--pink-deep);
    color: var(--pink-deep);
}

.btn-full { width: 100%; }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--pink-hot) 0%, var(--pink-deep) 40%, var(--pink-magenta) 100%);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

body.dark-theme .hero {
    background: linear-gradient(135deg, #2d1233 0%, #1a0a1a 40%, #0d050d 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite;
}

body.dark-theme .hero::before {
    background: radial-gradient(circle, rgba(155,89,182,0.15) 0%, transparent 70%);
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

.hero-content { position: relative; z-index: 1; }

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

body.dark-theme .hero-title {
    text-shadow: 0 2px 30px rgba(155,89,182,0.5);
}

.hero-title .highlight {
    display: inline-block;
    font-size: 4.5rem;
}

.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: #ffffff;
    color: var(--pink-deep);
    border-color: #ffffff;
}
.hero .btn-primary:hover {
    background: var(--pink-light);
    color: var(--pink-magenta);
}

body.dark-theme .hero .btn-primary {
    background: rgba(155, 89, 182, 0.3);
    color: #FFD1E8;
    border-color: #9b59b6;
}
body.dark-theme .hero .btn-primary:hover {
    background: rgba(155, 89, 182, 0.5);
    color: #ffffff;
}

.hero .btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,0.5);
}
.hero .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #ffffff;
    color: #ffffff;
}

body.dark-theme .hero .btn-outline {
    border-color: rgba(155, 89, 182, 0.5);
}
body.dark-theme .hero .btn-outline:hover {
    background: rgba(155, 89, 182, 0.2);
    border-color: #9b59b6;
}

/* --- Sections --- */
.section { padding: 4rem 0; }
.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--pink-deep);
    text-align: center;
    margin-bottom: 2.5rem;
}

body.dark-theme .section-title {
    color: var(--pink-magenta);
    text-shadow: 0 0 20px rgba(155, 89, 182, 0.4);
}

.page-header {
    background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
    text-align: center;
    padding: 3rem 0;
}

body.dark-theme .page-header {
    background: linear-gradient(135deg, #2d1233, #1a0a1a);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.dark-theme .page-title {
    text-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
}

.page-subtitle {
    color: rgba(255,255,255,0.85);
    margin-top: 0.5rem;
    font-weight: 600;
}

/* --- Post Cards Grid --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}
.posts-grid .post-card:only-child {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-pink);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-card);
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px var(--shadow-deep);
}

.post-card-image {
    display: block;
    height: 200px;
    overflow: hidden;
    background: var(--card-placeholder-bg);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.post-card:hover .post-card-image img { transform: scale(1.05); }

.post-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.post-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-date {
    display: block;
    font-size: 0.8rem;
    color: var(--pink-hot);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--pink-deep); }

.post-card-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    flex: 1;
    margin-bottom: 1rem;
}

.read-more {
    font-weight: 700;
    color: var(--pink-deep);
    font-size: 0.9rem;
}
.read-more:hover { color: var(--pink-magenta); }

/* --- Single Post --- */
.single-post .post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--pink-deep);
    line-height: 1.2;
    margin-top: 0.5rem;
}

.post-featured-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px var(--shadow-pink);
}

.post-featured-image img { width: 100%; }

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-content h2, .post-content h3 {
    font-family: var(--font-heading);
    color: var(--pink-deep);
    margin: 2rem 0 1rem;
}

.post-content p { margin-bottom: 1.25rem; }

.post-content img {
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px var(--shadow-pink);
}

.post-content a {
    color: var(--pink-deep);
    border-bottom: 2px solid var(--pink-baby);
    transition: border-color var(--transition);
}
.post-content a:hover { border-color: var(--pink-deep); }

.post-content blockquote {
    border-left: 4px solid var(--pink-hot);
    background: var(--bg-blockquote);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text);
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-divider);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.badge-draft { background: #fff3cd; color: #856404; }
body.dark-theme .badge-draft { background: #3d3000; color: #ffc107; }

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.page-info {
    color: var(--text-muted);
    font-weight: 600;
}

/* --- Contact Form --- */
.contact-form { max-width: 600px; margin: 0 auto; }

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.form-group .required { color: var(--pink-deep); }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-input);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition);
    background: var(--bg-input);
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--pink-deep);
}

.form-group textarea { resize: vertical; }

/* --- Alerts --- */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    font-weight: 600;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
body.dark-theme .alert-success { background: #0a2e1a; color: #7dffb3; border-color: #1a4030; }
body.dark-theme .alert-error { background: #3d1020; color: #ff8a9b; border-color: #5d1830; }

/* --- Content Block (about page etc) --- */
.content-block {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 4px 20px var(--shadow-pink);
    border: 1px solid var(--border-card);
}

.content-block h2 {
    font-family: var(--font-heading);
    color: var(--pink-deep);
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
}
.content-block h2:first-child { margin-top: 0; }

.content-block p { margin-bottom: 1rem; }

/* --- Footer --- */
.site-footer {
    background: var(--bg-footer);
    color: #ffffff;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

body.dark-theme .site-footer {
    border-top: 1px solid #3d1845;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

body.dark-theme .footer-content {
    border-bottom-color: rgba(155, 89, 182, 0.2);
}

.footer-brand .logo-text {
    -webkit-text-fill-color: #ffffff;
    font-size: 1.4rem;
}

.footer-tagline {
    opacity: 0.8;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    transition: color var(--transition);
}
.footer-links a:hover { color: #ffffff; }

.admin-link { opacity: 0.5; font-size: 0.8rem; }
.admin-link:hover { opacity: 1; }

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--bg-nav-dropdown);
        border-radius: var(--radius);
        box-shadow: 0 10px 40px var(--shadow-deep);
        flex-direction: column;
        padding: 1rem;
        min-width: 200px;
        z-index: 100;
    }

    .main-nav.open .nav-links { display: flex; }

    .hero-title { font-size: 2.2rem; }
    .hero-title .highlight { font-size: 3rem; }
    .hero { padding: 4rem 0; }

    .posts-grid { grid-template-columns: 1fr; }

    .post-title { font-size: 2rem; }

    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-links { justify-content: center; }

    /* Theme toggle placement on mobile */
    .theme-toggle {
        order: -1;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-title .highlight { font-size: 2.4rem; }

    .section { padding: 2.5rem 0; }
    .section-title { font-size: 1.8rem; }
    .page-title { font-size: 2rem; }

    .content-block { padding: 1.5rem; }
}

/* --- Selection Color --- */
::selection {
    background: var(--selection-bg);
    color: var(--selection-color);
}


/* =============================================================================
   USER AUTH STYLES
   ============================================================================= */

.auth-form-wrap {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.auth-form-box {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 15px 50px var(--auth-box-shadow);
    border: 1px solid var(--border-card);
}

.auth-title {
    font-family: 'Bubblegum Sans', cursive;
    color: var(--pink-deep);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.auth-errors {
    background: var(--auth-error-bg);
    border: 1px solid var(--auth-error-border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.auth-errors p {
    color: var(--auth-error-text);
    margin: 0.25rem 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}
body.dark-theme .auth-success {
    background: #0a2e1a;
    border-color: #1a4030;
}
.auth-success h3 {
    font-family: 'Bubblegum Sans', cursive;
    color: #155724;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
body.dark-theme .auth-success h3 {
    color: #7dffb3;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text);
    font-size: 0.9rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="url"],
.auth-form textarea,
.submit-form input[type="text"],
.submit-form input[type="url"],
.submit-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-input);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    background: var(--bg-input);
    color: var(--text);
}

.auth-form input:focus,
.submit-form input:focus,
.submit-form textarea:focus {
    border-color: var(--pink-deep);
    box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.1);
}

body.dark-theme .auth-form input:focus,
body.dark-theme .submit-form input:focus,
body.dark-theme .submit-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.2);
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
}
.auth-switch a {
    color: var(--pink-deep);
    font-weight: 700;
    text-decoration: none;
}
.auth-switch a:hover {
    text-decoration: underline;
}

/* Nav signup button */
.nav-signup-btn {
    background: linear-gradient(135deg, #FF69B4, #FF1493) !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
}

body.dark-theme .nav-signup-btn {
    background: linear-gradient(135deg, #9b59b6, #8B008B) !important;
    box-shadow: 0 4px 15px rgba(139, 0, 139, 0.3);
}

.nav-user-link {
    font-weight: 700 !important;
    color: var(--pink-deep) !important;
}

.nav-logout-link {
    opacity: 0.7;
}

/* =============================================================================
   COMMUNITY STYLES
   ============================================================================= */

.community-header {
    text-align: center;
    margin-bottom: 2rem;
}
.community-intro {
    color: var(--text-muted);
    margin: 0.5rem 0 1.5rem;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.community-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shadow-pink);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-card);
}
.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-deep);
}

.community-card-image {
    display: block;
    height: 200px;
    overflow: hidden;
}
.community-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.community-card:hover .community-card-image img {
    transform: scale(1.05);
}
.community-card-placeholder {
    background: var(--card-placeholder-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.community-card-body {
    padding: 1.25rem;
}
.community-card-body h3 {
    font-family: 'Bubblegum Sans', cursive;
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}
.community-card-body h3 a {
    color: var(--pink-deep);
    text-decoration: none;
}
.community-card-body h3 a:hover {
    text-decoration: underline;
}
.community-card-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
    line-height: 1.5;
}
.community-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.community-card-meta a {
    color: var(--pink-deep);
    text-decoration: none;
    font-weight: 600;
}

.empty-community {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 8px 30px var(--shadow-pink);
    border: 1px solid var(--border-card);
}
.empty-community h3 {
    font-family: 'Bubblegum Sans', cursive;
    color: var(--pink-deep);
}

.community-feed-section {
    background: var(--bg-community-feed);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-top: -0.5rem;
    margin-bottom: 2rem;
}

/* =============================================================================
   SUBMISSION DETAIL
   ============================================================================= */

.submission-detail {
    max-width: 800px;
    margin: 0 auto;
}

.submission-title {
    font-family: 'Bubblegum Sans', cursive;
    color: var(--pink-deep);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.submission-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-divider);
}
.submission-meta time {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.submission-author {
    color: var(--pink-deep);
    font-weight: 700;
    text-decoration: none;
}

.submission-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tag-pill {
    background: var(--bg-tag);
    color: var(--pink-deep);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

body.dark-theme .tag-pill {
    color: #9b59b6;
}

.submission-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.gallery-item img {
    width: 100%;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.3s;
}
.gallery-item img:hover {
    transform: scale(1.02);
}
.gallery-item img.expanded {
    position: fixed;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    object-fit: contain;
    z-index: 9999;
    background: rgba(0,0,0,0.9);
    border-radius: 0;
    padding: 2rem;
    box-sizing: border-box;
}

.submission-video {
    margin-bottom: 2rem;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.submission-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 2rem;
}

.submission-nav {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-divider);
}

.pending-notice {
    background: #fff3cd;
    color: #856404;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
body.dark-theme .pending-notice {
    background: #3d3000;
    color: #ffc107;
}

/* =============================================================================
   SUBMIT FORM
   ============================================================================= */

.submit-form-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.submit-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.submit-form .form-group {
    margin-bottom: 1.5rem;
}

.submit-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.file-upload-area {
    position: relative;
    border: 2px dashed var(--border-input);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s, background 0.3s;
    cursor: pointer;
    background: var(--bg-input);
}
.file-upload-area.dragover {
    border-color: var(--pink-deep);
    background: var(--pink-light);
}
.file-upload-area .file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    -webkit-appearance: none;
    min-height: 44px;
}
.file-upload-area .file-upload-label {
    pointer-events: none;
    position: relative;
    z-index: 1;
}
.file-upload-area .preview-container {
    pointer-events: none;
    position: relative;
    z-index: 1;
}
.file-upload-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}
.file-upload-label p {
    margin: 0;
    color: var(--text-light);
}
.file-upload-label small {
    color: var(--text-muted);
}

.preview-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.preview-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--border-input);
}

/* =============================================================================
   PROFILE
   ============================================================================= */

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px var(--shadow-pink);
    border: 1px solid var(--border-card);
}
.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}
.profile-username {
    font-family: 'Bubblegum Sans', cursive;
    color: var(--pink-deep);
    font-size: 2rem;
    margin: 0;
}
.profile-meta {
    color: var(--text-muted);
    margin: 0.25rem 0;
}
.profile-badge {
    display: inline-block;
    background: var(--bg-tag);
    color: var(--pink-deep);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* =============================================================================
   PAGINATION (duplicate cleanup — keeping one)
   ============================================================================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-divider);
}
.page-info {
    color: var(--text-muted);
    font-weight: 600;
}

@media (max-width: 768px) {
    .community-grid {
        grid-template-columns: 1fr;
    }
    .submission-gallery {
        grid-template-columns: 1fr;
    }
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .submission-title {
        font-size: 1.8rem;
    }
}

/* =============================================================================
   DARK THEME — PROFILE PAGE OVERRIDES
   (profile.php uses inline <style>, these override those hardcoded colors)
   ============================================================================= */

body.dark-theme .profile-banner {
    background: linear-gradient(135deg, #1a0a1a 0%, #2d1233 40%, #3d1845 70%, #1a0a1a 100%) !important;
}

body.dark-theme .profile-card-inner {
    background: rgba(30, 14, 30, 0.97) !important;
    border-color: rgba(155, 89, 182, 0.15) !important;
    box-shadow: 0 8px 40px rgba(139, 0, 139, 0.15), 0 2px 12px rgba(0,0,0,0.2) !important;
}

body.dark-theme .profile-avatar-placeholder {
    background: linear-gradient(135deg, #4a2040, #9b59b6) !important;
}

body.dark-theme .profile-username {
    color: var(--pink-hot) !important;
}

body.dark-theme .profile-join-date {
    color: #6a4060 !important;
}

body.dark-theme .profile-bio {
    color: var(--text-light) !important;
}

body.dark-theme .profile-stat-num {
    color: var(--pink-hot) !important;
}

body.dark-theme .profile-stat-label {
    color: var(--text-muted) !important;
}

body.dark-theme .profile-edit-btn {
    border-color: var(--pink-magenta) !important;
    color: var(--pink-magenta) !important;
}
body.dark-theme .profile-edit-btn:hover {
    background: linear-gradient(135deg, #9b59b6, #8B008B) !important;
    color: #fff !important;
}

body.dark-theme .social-pill {
    background: rgba(155, 89, 182, 0.1) !important;
    color: #9b59b6 !important;
    border-color: rgba(155, 89, 182, 0.2) !important;
}
body.dark-theme .social-pill:hover {
    background: rgba(155, 89, 182, 0.2) !important;
    border-color: #9b59b6 !important;
}

body.dark-theme .contact-chip {
    background: rgba(155, 89, 182, 0.08) !important;
    color: var(--text-light) !important;
    border-color: rgba(155, 89, 182, 0.15) !important;
}
body.dark-theme .contact-chip a { color: #9b59b6 !important; }

body.dark-theme .tab-btn {
    background: rgba(30, 14, 30, 0.8) !important;
    color: var(--text-muted) !important;
    border-color: rgba(155, 89, 182, 0.15) !important;
}
body.dark-theme .tab-btn:hover {
    border-color: #9b59b6 !important;
    color: var(--pink-hot) !important;
    background: rgba(155, 89, 182, 0.1) !important;
}
body.dark-theme .tab-btn.active {
    background: linear-gradient(135deg, #9b59b6, #8B008B) !important;
    color: #fff !important;
    border-color: #9b59b6 !important;
    box-shadow: 0 4px 16px rgba(155, 89, 182, 0.3) !important;
}

body.dark-theme .feed-card {
    background: rgba(30, 14, 30, 0.97) !important;
    border-color: rgba(155, 89, 182, 0.1) !important;
    box-shadow: 0 2px 16px rgba(139, 0, 139, 0.1) !important;
}
body.dark-theme .feed-card:hover {
    box-shadow: 0 6px 24px rgba(155, 89, 182, 0.2) !important;
}
body.dark-theme .feed-card-placeholder {
    background: linear-gradient(135deg, #2d1233, #3d1845) !important;
}
body.dark-theme .feed-card-title { color: var(--text) !important; }
body.dark-theme .feed-card-desc { color: var(--text-light) !important; }
body.dark-theme .feed-card-date { color: var(--text-muted) !important; }
body.dark-theme .lock-locked { color: #9b59b6 !important; }
body.dark-theme .lock-permanent { color: var(--text) !important; }

body.dark-theme .diary-entry {
    background: rgba(30, 14, 30, 0.97) !important;
    border-color: rgba(155, 89, 182, 0.1) !important;
    box-shadow: 0 2px 16px rgba(139, 0, 139, 0.1) !important;
}
body.dark-theme .diary-entry:hover {
    box-shadow: 0 6px 24px rgba(155, 89, 182, 0.15) !important;
}
body.dark-theme .diary-entry-title { color: var(--pink-hot) !important; }
body.dark-theme .diary-entry-date { color: var(--text-muted) !important; }
body.dark-theme .diary-entry-body { color: var(--text-light) !important; }

body.dark-theme .profile-empty { color: var(--text-muted) !important; }

/* =============================================================================
   DARK THEME — INDEX PAGE CAROUSEL OVERRIDES
   ============================================================================= */

body.dark-theme .main-sections {
    background: var(--bg-body);
}


/* ==========================================================================
   Streak Display
   ========================================================================== */
.streak-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-family: var(--font-body);
}
.streak-fire {
    font-size: 1.1rem;
    font-weight: 800;
    color: #FF6600;
    background: rgba(255, 102, 0, 0.1);
    padding: 4px 14px;
    border-radius: 20px;
}
.streak-badge {
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 12px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 20px;
}
.streak-best {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}
