@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Bright & Fresh Palette */
    --primary-color: #4361ee; /* Deep Royal Blue */
    --secondary-color: #7209b7; /* Deep Purple */
    --bg-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    
    /* Crystal Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    
    /* Typography */
    --text-main: #1d1d1f;
    --text-muted: #6e6e73;
    --btn-text: #ffffff; /* High contrast white text on dark buttons */
    
    --radius-lg: 24px;
    --radius-md: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 80% Width Expansive Container */
.container {
    width: 80%;
    max-width: 1400px;
    margin: 40px auto;
    flex-grow: 1;
}

header {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%); /* Deep Midnight Gradient */
    border-bottom: 3px solid var(--primary-color);
    padding: 20px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.header-logo {
    height: 60px;
    width: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

header h1 {
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #a2a2a2 100%); /* Light text for dark banner */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Dropdown Container */
.nav-item {
    position: relative;
    display: inline-block;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown Content (Hidden by Default) */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; /* Move to 100% to start the bridge */
    left: 50%;
    transform: translateX(-50%) translateY(15px); /* Offset visually instead of using 'top' */
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    min-width: 220px;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden; /* Use visibility for smoother transition */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Invisible bridge to keep menu open */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.nav-item:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.dropdown-menu a {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 18px;
    text-decoration: none;
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: transparent;
    margin-bottom: 2px;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding-left: 22px;
}

/* Dropdown Arrow Indicator */
.nav-link::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-link::after {
    transform: rotate(180deg);
}

/* No Arrow for simple links */
.nav-link.no-arrow::after {
    display: none;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    padding: 40px;
}

/* Expansive Full-Width Posts */
.post {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    margin-bottom: 50px;
    overflow: hidden;
    width: 100%;
}

.post-header {
    padding: 25px 35px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
}

/* Full Width Media */
.post-media {
    width: 100%;
    background: #f0f0f0;
}

.post-media img, .post-media video {
    width: 100%;
    height: auto;
    display: block;
}

/* YouTube Full-Width fix */
.youtube-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    width: 100%;
    overflow: hidden;
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.post-body {
    padding: 35px;
}

.post-caption {
    font-size: 1.3rem;
    line-height: 1.6;
    font-weight: 500;
    color: var(--text-main);
}

/* High Contrast Dark Buttons */
.btn {
    background: #1d1d1f; /* Dark Charcoal */
    color: #ffffff !important; /* High Contrast White Text */
    border: none;
    border-radius: 14px;
    padding: 16px 32px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: var(--primary-color);
    color: #ffffff !important;
}

.btn-secondary:hover {
    background: #304ffe;
}

/* Inputs */
input[type="text"], input[type="password"], input[type="datetime-local"], textarea, select {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

/* Comments */
.comments-section {
    background: #fafafa;
    padding: 35px;
    border-top: 1px solid #eee;
}

.comment {
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    border: 1px solid #f0f0f0;
}

.comment span {
    color: var(--secondary-color);
    font-weight: 800;
    margin-right: 8px;
}

/* Like Button */
.like-btn {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-btn.active {
    color: #ff4d6d;
}

/* --- Fancy Login Entrance --- */
.login-view {
    background: #0f0c29; /* Fallback */
    background: radial-gradient(circle at center, #1b2735 0%, #090a0f 100%);
    overflow: hidden;
}

.login-view header {
    background: transparent;
    box-shadow: none;
    border: none;
}

.login-view .container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    margin: 0 auto;
}

/* Networking Pattern Background */
.network-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10L90 90M90 10L10 90' stroke='rgba(67, 97, 238, 0.2)' stroke-width='1'/%3E%3Ccircle cx='10' cy='10' r='2' fill='rgba(67, 97, 238, 0.5)'/%3E%3Ccircle cx='90' cy='90' r='2' fill='rgba(67, 97, 238, 0.5)'/%3E%3Ccircle cx='90' cy='10' r='2' fill='rgba(67, 97, 238, 0.5)'/%3E%3Ccircle cx='10' cy='90' r='2' fill='rgba(67, 97, 238, 0.5)'/%3E%3Ccircle cx='50' cy='50' r='3' fill='rgba(114, 9, 183, 0.6)'/%3E%3C/svg%3E");
    background-size: 100px 100px;
}

/* Slide and Fade Animation */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.auth-container.fancy {
    max-width: 500px;
    width: 90%;
    padding: 60px;
    animation: slideUpFade 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    color: white;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-container.fancy h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-container.fancy p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.auth-container.fancy label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-container.fancy input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 20px;
    padding: 18px 24px;
    font-size: 1.1rem;
    margin-bottom: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-container.fancy input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.auth-container.fancy input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.2);
    transform: scale(1.01);
}

.auth-container.fancy .btn {
    width: 100%;
    margin-top: 20px;
    padding: 20px;
    border-radius: 20px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.4);
    border: none;
}

.auth-container.fancy .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.5);
}

.auth-container.fancy .btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8) !important;
}

.auth-container.fancy .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

footer {
    padding: 50px;
    text-align: center;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Hero Banner --- */
.hero-banner {
    position: relative;
    width: 100%;
    height: 450px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../banner.jpg');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 60px;
    margin-bottom: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.hero-banner h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1.1;
    z-index: 1;
    background: linear-gradient(to right, #fff, #a2a2a2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-banner h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary-color);
    z-index: 1;
}

.hero-banner p {
    font-size: 1.25rem;
    max-width: 800px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    z-index: 1;
    margin-bottom: 35px;
}

.hero-banner .btn {
    z-index: 1;
}
