/* ===========================================
   PSRA - Clean CSS with Tailwind Integration
   =========================================== */

/* CSS Variables for Brand Colors */
:root {
    --primary-blue: #2D577B;
    --primary-blue-light: #607D9B;
    --accent-orange: #F59E0B;
    --accent-orange-hover: #E6930A;
    --accent-green: #4ADE80;
    --text-gray: #1E293B;
    --text-muted: #64748B;
    --bg-secondary: #F8FAFC;
    --border-color: #E2E8F0;
}

/* Global Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-gray);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.font-heading {
    font-family: 'Montserrat', sans-serif;
}

.font-body {
    font-family: 'Inter', sans-serif;
}

/* Text Shadows */
.text-shadow-lg {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.text-shadow-md {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===========================================
   ANIMATIONS
   =========================================== */

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.goal-card-1 { animation-delay: 0.1s; }
.goal-card-2 { animation-delay: 0.2s; }
.goal-card-3 { animation-delay: 0.3s; }

.discussion-card-1 { animation-delay: 0.1s; }
.discussion-card-2 { animation-delay: 0.2s; }
.discussion-card-3 { animation-delay: 0.3s; }
.discussion-card-4 { animation-delay: 0.4s; }
.discussion-card-5 { animation-delay: 0.5s; }
.discussion-card-6 { animation-delay: 0.6s; }

.partner-card-1 { animation-delay: 0.1s; }
.partner-card-2 { animation-delay: 0.2s; }
.partner-card-3 { animation-delay: 0.3s; }

/* Float animation for particles */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

.animation-delay-3s {
    animation-delay: 3s;
}

/* ===========================================
   MISSING LAYOUT & COMPONENT STYLES
   =========================================== */

/* Section containers */
.section {
    padding: 60px 0;
    background-color: #ffffff;
}

/* Main content containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 20px;
}

/* Card components */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-blue);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-orange);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn:active {
    transform: translateY(0);
}

/* ===========================================
   FORUM-SPECIFIC LAYOUTS
   =========================================== */

.forum-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.forum-sidebar {
    position: sticky;
    top: 20px;
}

/* ===========================================
   LEGACY STYLES (for backward compatibility)
   =========================================== */

/* Header & Navigation */
header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

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

.logo img {
    height: 50px;
    min-width: 150px;
    filter: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-gray);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 5px 10px;
    transition: background-color 0.3s;
}

nav a:hover, nav a.active {
    background-color: var(--bg-secondary);
    color: var(--primary-blue);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 40px 0 20px;
    margin-top: 40px;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.footer-column h4 {
    margin-bottom: 10px;
    color: var(--primary-blue);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: var(--text-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
}

.footer-column a:hover {
    color: var(--primary-blue);
}

.footer-logo {
    height: 40px;
    min-width: 150px;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons img {
    width: 32px;
    height: 32px;
}

/* Notification Badge */
.notification-badge {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 5px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 10px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .notification-badge {
        font-size: 0.7rem;
        padding: 1px 5px;
        min-width: 16px;
        height: 16px;
    }

    /* Responsive styles for new classes */
    .section {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }

    .forum-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .forum-sidebar {
        position: static;
        order: 2;
    }

    .grid {
        gap: 15px;
    }

    .card {
        padding: 15px;
        margin-bottom: 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ===========================================
   ACCESSIBILITY
   =========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
