/* --- Variables & Reset --- */
:root {
    --primary-blue: #002366;  /* Royal Blue */
    --gold: #D4AF37;          /* Metallic Gold */
    --bg-light: #f8f9fa;      /* Light Grey Background */
    --white: #ffffff;
    --text-dark: #212529;
    --danger: #dc3545;
}

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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    padding-bottom: 70px; /* Space for fixed bottom footer */
}

/* --- Header Styling --- */
.main-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--gold);
}

.menu-icon, .notif {
    font-size: 1.4rem;
    cursor: pointer;
}

/* --- Side Navigation (Hamburger) --- */
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    background-color: var(--primary-blue);
    overflow-x: hidden;
    transition: 0.4s;
    padding-top: 60px;
}

.sidenav a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 1.1rem;
    color: var(--white);
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidenav a i {
    margin-right: 15px;
    color: var(--gold);
}

.sidenav .closebtn {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 36px;
}

/* --- Bottom Navigation --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 2px solid var(--gold);
    z-index: 1000;
}

.nav-item {
    text-decoration: none;
    color: var(--primary-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

/* --- Cards & Content --- */
.container {
    padding: 15px;
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* --- Forms & Buttons --- */
.form-group {
    margin-bottom: 15px;
}

input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="number"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
}

.btn-gold {
    background: var(--gold);
    color: var(--primary-blue);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    width: 100%;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-gold:hover {
    background: #b8962d;
}

/* --- Status Badges --- */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.monetized { background: #d4edda; color: #155724; }
.not-monetized { background: #f8d7da; color: #721c24; }

/* --- Ads Styling --- */
.ad-container {
    background: #fff9e6;
    border: 1px dashed var(--gold);
    padding: 10px;
    text-align: center;
    margin: 10px 0;
    border-radius: 8px;
}

/* --- Responsive Adjustments --- */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
        margin: 0 auto;
    }
}
/* Professional Newsfeed Styling */
#posts-container .card {
    border: none;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

#posts-container .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.post-actions {
    display: flex;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: 10px;
    justify-content: space-around;
}

.action-item {
    color: #65676b;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: 0.2s;
}

.action-item:hover {
    background: #f2f2f2;
}

.action-item.liked {
    color: #e41e3f;
}