/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Kaushan+Script&family=Nunito:wght@600&display=swap');

/* CSS Variables for colors */
:root {
    --primary-tan: #D4A574;
    --secondary-tan: #C9956B;
    --dark-brown: #5C4033;
    --medium-brown: #8B6F47;
    --light-tan: #E8D5C4;
    --background: #F5EBE0;
    --text-dark: #3D2817;
    --text-light: #7A5C3D;
    --gray-icon: #A89F91;
}

/* Font styles */
.main-text {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
}

.title-text {
    font-family: 'Kaushan Script', cursive;
}

.italic-text {
    font-family: 'Raleway', sans-serif;
    font-style: italic;
}

.pill-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--background) 0%, var(--light-tan) 100%);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-y: scroll; /* Always show scrollbar to prevent content shift */
}

/* Interstitial */
#interstitial {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--medium-brown) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

#interstitial.fade-out {
    opacity: 0;
    pointer-events: none;
}

#interstitial img {
    max-width: 200px;
    max-height: 200px;
    opacity: 0;
    animation: fadeInImage 1s ease-in-out 0.5s forwards;
}

@keyframes fadeInImage {
    to {
        opacity: 1;
    }
}

/* Main container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    opacity: 0;
    animation: fadeInContent 0.5s ease-in-out 2.5s forwards;
}

@keyframes fadeInContent {
    to {
        opacity: 1;
    }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.site-title {
    font-family: 'Kaushan Script', cursive;
    font-size: 2.5em;
    color: var(--dark-brown);
    margin-bottom: 10px;
}

.site-subtitle {
    font-family: 'Raleway', sans-serif;
    font-style: italic;
    font-size: 0.9em;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Category sections */
.category-section {
    margin-bottom: 30px;
}

.category-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 1.2em;
    color: var(--medium-brown);
    margin-bottom: 8px;
    text-transform: capitalize;
}

/* Thread items */
.thread-item {
    padding: 15px;
    margin-bottom: 0px;
}

.bold-thread {
    font-weight: 800 !important;
}

.thread-item:hover {
    /* Empty or remove this block entirely */
}

.thread-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.platform-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.thread-link {
    flex-grow: 1;
    color: var(--dark-brown);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
}

.thread-link:hover {
    color: var(--primary-tan);
}

.info-toggle {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
    color: var(--gray-icon);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: color 0.2s ease;
}

.info-toggle:hover {
    color: var(--medium-brown);
}

.thread-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.thread-details.expanded {
    max-height: 300px;
    margin-top: 12px;
}

.thread-details .pill-button {
    padding: 4px 10px;
    font-size: 0.9em;
}

.thread-details .report-button {
    padding: 4px 10px;
    font-size: 0.8em;
}

.thread-description {
    font-family: 'Raleway', sans-serif;
    font-style: italic;
    font-size: 0.9em;
    color: var(--text-light);
    margin-bottom: 8px;
}

.thread-admins {
    font-family: 'Raleway', sans-serif;
    font-style: italic;
    font-size: 0.9em;
    color: var(--text-light);
    margin-bottom: 8px;
}

.report-button {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85em;
    color: var(--medium-brown);
    background: none;
    border: 1px solid var(--medium-brown);
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-button:hover {
    background: var(--medium-brown);
    color: white;
}

/* Bottom buttons */
.bottom-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.pill-button {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 1em;
    color: white;
    background: linear-gradient(135deg, var(--primary-tan) 0%, var(--secondary-tan) 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
    text-decoration: none;
}

.pill-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 165, 116, 0.4);
}

.pill-button:active {
    transform: translateY(0);
}

/* Frolic animation */
.emoji-particle {
    position: fixed;
    font-size: 30px;
    pointer-events: none;
    z-index: 9998;
    animation: frolic 3s ease-out forwards;
}

@keyframes frolic {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Add Thread Page Styles */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 32px;
    color: var(--medium-brown);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-button:hover {
    color: var(--dark-brown);
}

.form-container {
    max-width: 500px;
    margin: 60px auto 40px;
    padding: 20px;
}

.form-title {
    font-family: 'Kaushan Script', cursive;
    font-size: 2em;
    color: var(--dark-brown);
    margin-bottom: 30px;
    text-align: center;
}

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

.form-label {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 1em;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--primary-tan);
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--medium-brown);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    font-family: 'Raleway', sans-serif;
    font-style: italic;
    font-size: 0.85em;
    color: var(--text-light);
    margin-top: 4px;
}

.char-counter {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85em;
    margin-top: 4px;
}

.char-counter.over-limit {
    color: red;
}

.admin-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.error-message {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85em;
    color: red;
    margin-top: 4px;
}

.submit-section {
    text-align: center;
    margin-top: 30px;
}

.submit-button {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    color: white;
    background: linear-gradient(135deg, var(--primary-tan) 0%, var(--secondary-tan) 100%);
    border: none;
    border-radius: 25px;
    padding: 14px 40px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 165, 116, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.admin-note {
    font-family: 'Raleway', sans-serif;
    font-style: italic;
    font-size: 0.85em;
    color: var(--text-light);
    margin-top: 12px;
}

/* Responsive design */
@media (max-width: 600px) {
    .site-title {
        font-size: 2em;
    }
    
    .site-subtitle {
        font-size: 0.85em;
    }
    
    .bottom-buttons {
        flex-direction: column;
        align-items: center;
    }
}
