/* Base Styles */
:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --background-white: #FFFFFF;
    --background-light: #F9FAFB;
    --text-color: #1F2937;
    --text-secondary: #6B7280;
    --gray-light: #E5E7EB;
    --gray-dark: #4B5563;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.main-header {
    background-color: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-light);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.logo img {
    height: 135px;
    width: auto;
    margin-top: -50px;
    margin-bottom: -50px;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-link i {
    font-size: 1rem;
}

.signup-btn {
    background-color: var(--primary-color);
    color: var(--background-white);
    padding: 0.4rem 1.2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
}

.signup-btn:hover {
    background-color: var(--primary-dark);
    color: var(--background-white);
}

.logout {
    color: var(--warning-color);
}

.logout:hover {
    color: var(--warning-color);
    opacity: 0.8;
}

/* Main Content */
main {
    margin-top: 72px; /* Height of header */
    min-height: calc(100vh - 72px - 400px); /* Viewport height minus header and footer */
}

/* Footer Styles */
.main-footer {
    background-color: var(--background-white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-logo {
    height: 135px;
    margin-bottom: -25px;
    margin-top: -60px;
}

.footer-section p {
    color: var(--text-secondary);
    max-width: 300px;
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .main-nav {
        gap: 1rem;
    }

    .nav-link span {
        display: none;
    }

    .nav-link i {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
    }
}

/* Background */
body {
  background-image: url('../images/background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  font-family: 'Times New Roman', Times, serif;
  color: white;
  position: relative;
  z-index: 1;
}

/* ---------- Non-Authenticated Top Navigation ---------- */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 60px;
  position: absolute;
  width: 100%;
  top: 50;
  left: 0;
  z-index: 100;
}

.logo-left img {
  height: 240px;
  margin-top: -70px;
}

.nav-wrapper {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.glass-nav {
  display: flex;
  gap: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 12px 30px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
}

.glass-nav a {
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  transition: 0.3s ease;
}

.glass-nav a:hover {
  text-shadow: 0 0 8px #fff;
  transform: scale(1.05);
}

/* ---------- Hero Slogan ---------- */
.hero-slogan {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 90%;
  z-index: 10;
}

.hero-slogan h1 {
  font-size: 3.8rem;
  font-weight: 500;
  color: white;
  line-height: 1.2;
}

.hero-slogan span.done {
  color: #f8dc9c;
}

/* ---------- Content Below Hero Slogan ---------- */
.post-slogan {
  margin-top: 60vh;
  padding: 40px 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.post-slogan h1,
.post-slogan h2,
.post-slogan p {
  color: white;
}

/* ========== Authenticated User Sidebar Nav ========== */
.glass-header {
  position: fixed;
  top: 60px;
  right: 60px;
  width: 260px;
  padding: 50px 30px;
  background: rgba(255, 223, 160, 0.086);
  border: 4px solid rgba(179, 157, 113, 0.3);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 0 40px rgba(255, 235, 190, 0.4);
  border-radius: 42px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-logo-auth img {
  height: 310px;
  margin-top: -120px;
  margin-bottom: -120px;
}

.nav-logo-auth::after {
  content: "";
  display: block;
  width: 90%;
  height: 3px;
  background-color: rgba(255, 223, 160, 0.5);
  margin: 25px 0 40px;
}

.nav-links-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.nav-links-auth a {
  color: #fce7b1;
  font-size: 22px;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.nav-links-auth a:hover {
  color: white;
  text-shadow: 0 0 10px #ffeaa6;
  transform: scale(1.05);
}
