
/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    background-color: #121212;
    overflow-x: hidden;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 6%;
    z-index: 100;
    background: transparent;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.logo a span {
    color: #ff7e5f;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff7e5f;
}

.btn-nav {
    background: #ff7e5f;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600 !important;
    text-shadow: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-nav:hover {
    background: #feb47b;
}


/* =========================
   HAMBURGER MENU
========================= */

.hamburger {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 27px;
    height: 3px;
    margin: 5px 0;
    background-color: #fff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* =========================
   MOBILE NAVBAR
========================= */

@media (max-width: 768px) {

    .navbar {
        flex-direction: row;
        padding: 15px 5%;
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .logo a {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

    .navbar nav {
        position: absolute;
        top: 100%;
        right: 5%;
    }

    .nav-links {
        display: none;

        flex-direction: column;
        align-items: center;
        gap: 18px;

        width: 220px;
        padding: 25px 20px;

        background: rgba(20, 20, 20, 0.96);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);

        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 15px;

        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .btn-nav {
        padding: 8px 18px;
    }
}

/* =========================
   HAMBURGER → X ANIMATION
========================= */

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================
   HERO SLIDER
========================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlider 15s infinite ease-in-out;
}

.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 5s;
}

.slide:nth-child(3) {
    animation-delay: 10s;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 800px;
}

.quote {
    font-size: clamp(1.4rem, 4vw, 2.5rem);
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.author {
    font-size: 1rem;
    color: #ffd166;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* =========================
   CTA SECTION
========================= */
.cta-section {
    padding: 70px 20px;
    text-align: center;
    background: linear-gradient(135deg, #1f1c2c, #928dab);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cta-section p {
    color: #d1d1d1;
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    background: #ff7e5f;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, background 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    background: #feb47b;
}

/* =========================
   FEATURES
========================= */
.features-section {
    padding: 80px 5%;
    background-color: #1a1a1a;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #ff7e5f;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: #242424;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-card p {
    color: #aaa;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* =========================
   FOOTER
========================= */
footer {
    text-align: center;
    padding: 20px;
    background: #0d0d0d;
    color: #666;
    font-size: 0.85rem;
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeSlider {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    43% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* =========================
   TABLET
========================= */
@media (max-width: 768px) {

    .navbar {
        padding: 15px 4%;
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .logo a {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .btn-nav {
        padding: 7px 13px;
    }

    .hero-slider {
        height: 90vh;
        min-height: 550px;
    }

    .slide-content {
        width: 88%;
    }

    .quote {
        font-size: clamp(1.4rem, 5vw, 2.2rem);
        line-height: 1.35;
    }

    .author {
        font-size: 0.9rem;
    }

    .cta-section {
        padding: 60px 20px;
    }

    .cta-section h2 {
        font-size: 1.7rem;
    }

    .features-section {
        padding: 60px 6%;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 25px;
    }
}

/* =========================
   SMALL PHONES
========================= */
@media (max-width: 480px) {

    .navbar {
        flex-direction: row;
        padding: 15px 5%;
        position: fixed;
    }

    .logo a {
        font-size: 1.1rem;
    }

    .hamburger {
        position: absolute;
        right: 5%;
        top: 50%;
        transform: translateY(-50%);
    }

    .navbar nav {
        position: absolute;
        top: 100%;
        right: 5%;
    }

    .nav-links {
        width: 220px;
        gap: 18px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }
}

/* =========================
   VERY SMALL PHONES
========================= */
@media (max-width: 360px) {

    .navbar {
        gap: 8px;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-links a {
        font-size: 0.7rem;
    }

    .btn-nav {
        padding: 5px 9px;
        font-size: 0.7rem;
    }

    .quote {
        font-size: 1.2rem;
    }

    .author {
        font-size: 0.75rem;
    }
}

/* Create Post Page Styles */
/* Full-page dynamic background for create-post */
body.create-post-page {
    background: linear-gradient(135deg, #0f0c20, #151a30, #24142c);
    min-height: 100vh;
}

.form-container {
    max-width: 600px;
    margin: 120px auto 40px;
    padding: 35px;
    background: rgba(255, 255, 255, 0.05); /* Semi-transparent */
    backdrop-filter: blur(16px); /* Creates the blur effect behind the card */
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: center;
}
/* Glow effects on focus */
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff7e5f;
    box-shadow: 0 0 10px rgba(255, 126, 95, 0.3);
}
.form-container h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #ff7e5f;
}

.form-container p {
    color: #aaa;
    margin-bottom: 25px;
}

.post-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ddd;
}

.form-group select,
.form-group textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #121212;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: 16px;
    height: 16px;
    accent-color: #ff7e5f;
}

/* Feed Page Styling */
body.feed-page {
    background: linear-gradient(135deg, #0f0c20, #151a30, #24142c);
    min-height: 100vh;
}

.feed-container {
    max-width: 1000px;
    margin: 110px auto 50px;
    padding: 0 20px;
}

.feed-header {
    text-align: center;
    margin-bottom: 30px;
}

.feed-header h2 {
    font-size: 2rem;
    color: #ff7e5f;
    margin-bottom: 5px;
}

.feed-header p {
    color: #aaa;
}

/* Filter Buttons */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #ff7e5f;
    border-color: #ff7e5f;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Frosted Glass Post Cards */
.post-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.post-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mood-badge {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.post-time {
    font-size: 0.75rem;
    color: #888;
}

.post-body {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}

.post-author {
    font-size: 0.85rem;
    color: #ffd166;
    font-weight: 500;
}

.heart-btn {
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.heart-btn:hover {
    color: #ff7e5f;
}

/* Auth Pages (Login & Signup) */
body.auth-page {
    background: linear-gradient(135deg, #0f0c20, #151a30, #24142c);
    min-height: 100vh;
}

.auth-container {
    max-width: 450px;
    margin: 130px auto 40px;
    padding: 35px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: center;
}

.auth-container h2 {
    font-size: 1.8rem;
    color: #ff7e5f;
    margin-bottom: 8px;
}

.auth-container p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #121212;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
}

.auth-form input:focus {
    outline: none;
    border-color: #ff7e5f;
    box-shadow: 0 0 10px rgba(255, 126, 95, 0.3);
}

.auth-switch {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem !important;
}

.auth-switch a {
    color: #ff7e5f;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Profile Page Styles */
body.profile-page {
    background: linear-gradient(135deg, #0f0c20, #151a30, #24142c);
    min-height: 100vh;
}

.profile-container {
    max-width: 900px;
    margin: 110px auto 50px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* User Header Card */
.profile-header-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.4);
}

.user-info h2 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 2px;
}

.user-info .username {
    color: #ff7e5f;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.user-info .join-date {
    color: #888;
    font-size: 0.85rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-card h3 {
    font-size: 1.6rem;
    color: #ffd166;
    margin-bottom: 5px;
}

.stat-card p {
    color: #aaa;
    font-size: 0.85rem;
}

/* Section Header */
.user-posts h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 20px;
}

/* Responsive Fix for Profile Header */
@media (max-width: 600px) {
    .profile-header-card {
        flex-direction: column;
        text-align: center;
    }
}