/* ==========================================================================
   1. DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --primary-gold: #ffd700;
    --primary-gold-hover: #ffcc00;
    --bg-dark: #1a1a1a;
    --bg-light: #eceff1;
    --bg-light-hover: #cfd8dc;
    --text-main: #333333;
    --text-muted: #777777;
    --border-color: #dddddd;
    --radius-lg: 15px;
    --radius-md: 8px;
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

/* ==========================================================================
   2. SYSTEM RESETS & BASE LAYOUT
   ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-main);
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 100px 20px 60px 20px; /* Pushed down to clear top-bar layout */
}

/* ==========================================================================
   3. THE NAVIGATION COMMAND BAR
   ========================================================================== */
.top-bar {
    background-color: #000000;
    width: 100%;
    height: 45px;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-left, .nav-center, .nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-center { justify-content: center; }
.nav-right  { justify-content: flex-end; }

.top-bar-title {
    color: var(--primary-gold);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.brand-name {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
}

.nav-icon {
    position: relative;
    text-decoration: none;
    line-height: 0;
}

.bell-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 7px;
    height: 7px;
    background: #ff4444;
    border-radius: 50%;
    border: 1px solid #000000;
}

/* ==========================================================================
   4. HAMBURGER SLIDE-OUT INTERFACE
   ========================================================================== */
#menu__toggle {
    position: fixed;
    top: -500px;
    left: -500px;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.menu__btn {
    position: fixed;
    top: 17px; /* Uniform grid centring in top bar */
    left: 20px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    z-index: 10002;
}

.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #ffffff; /* Contrast fix against dark bar */
    transition-duration: .25s;
    content: '';
}
.menu__btn > span::before { top: -8px; }
.menu__btn > span::after { top: 8px; }

.menu__box {
    display: block;
    position: fixed;
    top: 45px;
    left: -250px;
    width: 250px;
    height: calc(100vh - 45px);
    margin: 0;
    padding: 40px 0;
    list-style: none;
    background-color: var(--bg-light);
    box-shadow: 2px 0 6px rgba(0, 0, 0, .4);
    transition: left .25s ease-in-out;
    z-index: 10001;
}

.menu__item {
    display: block;
    padding: 12px 24px;
    color: var(--text-main);
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .25s;
}
.menu__item:hover {
    background-color: var(--bg-light-hover);
}

/* Trigger Wiring System */
#menu__toggle:checked ~ .menu__box { left: 0; }
#menu__toggle:checked ~ .menu__btn > span { transform: rotate(45deg); }
#menu__toggle:checked ~ .menu__btn > span::before { top: 0; transform: rotate(0); }
#menu__toggle:checked ~ .menu__btn > span::after { top: 0; transform: rotate(90deg); }

/* ==========================================================================
   5. PRESENTATION CARDS & INTERACTION LAYERS
   ========================================================================== */
.postcard {
    background: #ffffff;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 95%;
    text-align: center;
}

.postcard img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 5px solid #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

#stars {
    margin-top: 25px;
    padding: 10px;
    background: #fff9e6;
    border-radius: 50px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

#stars svg { transition: transform 0.2s ease-in-out; }
#stars a:hover svg { transform: scale(1.2); }

#timer {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-main);
    margin-top: 25px;
}

/* ==========================================================================
   6. HISTORICAL ARCHIVE ENGINE & LIGHTBOX
   ========================================================================== */
.archive-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.kitty-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px 0;
}

.archive-item {
    background: #ffffff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    width: 140px;
}

.thumb-wrapper img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
}

.archive-stats {
    margin-top: 8px;
    text-align: center;
}

.date-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.mini-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

/* Fullscreen Modals */
.overlay {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.overlay-wrapper {
    display: flex;
    max-width: 90%;
    max-height: 90%;
    background: #ffffff;
    padding: 10px;
    border-radius: var(--radius-md);
}

.overlay-content {
    max-width: 60vw;
    max-height: 80vh;
    border-radius: 6px;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* ==========================================================================
   7. CHAT MODULE & COMMENTS SYSTEM
   ========================================================================== */
.comment-sidebar {
    width: 300px;
    padding: 20px;
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
    color: var(--text-main);
}

.comment-section {
    max-width: 450px;
    width: 95%;
    margin-top: 20px;
}

.comment-input-wrapper {
    display: flex;
    width: 100%;
    gap: 10px;
}

.comment-input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    min-width: 0;
}

.comment-btn {
    flex-shrink: 0;
    background: var(--primary-gold);
    border: none;
    padding: 0 20px;
    border-radius: var(--radius-md);
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.comment-btn:hover { background: var(--primary-gold-hover); }

.comment-feed {
    margin-top: 20px;
    text-align: left;
}

.comment-bubble {
    background: #ffffff;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}

.comment-user {
    font-size: 0.75rem;
    font-weight: bold;
    color: #b08d00;
    display: block;
    margin-bottom: 4px;
}

.comment-content {
    margin: 0;
    font-size: 0.9rem;
    color: #444444;
    line-height: 1.4;
}

.comment-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
}

.reply-action {
    cursor: pointer;
    color: #007bff;
    font-weight: bold;
}

.comment-item {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

/* ==========================================================================
   8. FORM ELEMENTS & BULLETPROOF SECURITY TILES
   ========================================================================== */
.register-form { text-align: left; }
.form-group { margin-bottom: 15px; }

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555555;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: #fafafa;
}
.form-input:focus {
    border-color: var(--primary-gold);
    outline: none;
    background: #ffffff;
}

.signup-btn {
    width: 100%;
    background: #28a745;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
    transition: background-color 0.2s;
}
.signup-btn:hover { background: #218838; }
.form-footer { margin-top: 20px; font-size: 0.85rem; color: var(--text-muted); text-align: center; }
.form-link { color: #007bff; text-decoration: none; }

/* Honeypot Bot Trap */
.field-trap {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ==========================================================================
   9. UPDATES MODULE
   ========================================================================== */
.news-container {
    max-width: 450px;
    width: 95%;
    margin-top: 30px;
    text-align: left;
}

.news-title {
    font-size: 1.1rem;
    color: #444444;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-gold);
    padding-left: 10px;
}

.news-card {
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 15px;
    transition: transform 0.2s ease;
}
.news-card:hover { transform: translateY(-2px); }

.news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-text {
    margin: 8px 0 0;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

/* ==========================================================================
   10. NETWORK & SOCIAL DASHBOARD LAYOUT
   ========================================================================== */
.profile-dashboard-master {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.dashboard-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    gap: 20px;
}

/* Find Friends Search Bar */
.search-wrapper-left {
    flex-grow: 1;
    max-width: 450px;
}

.search-flex-container {
    display: flex;
    gap: 10px;
}

.search-input-clean {
    flex-grow: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    outline: none;
    background: #fafafa;
    transition: border-color 0.2s, background-color 0.2s;
}

.search-input-clean:focus {
    border-color: var(--primary-gold);
    background: #ffffff;
}

/* Unified Buttons */
.btn-gold-action {
    background: var(--primary-gold);
    color: var(--text-main);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn-gold-action:hover {
    background: var(--primary-gold-hover);
}

.btn-green-accept {
    font-size: 0.8rem;
    color: #ffffff;
    background: #28a745;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.15s;
}

.btn-green-accept:hover {
    background: #218838;
}

/* Dropdown Notification Center */
.notification-dropdown-anchor {
    position: relative;
    display: inline-block;
}

.notification-pill-trigger {
    cursor: pointer;
    position: relative;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    transition: background-color 0.2s;
}

.notification-pill-trigger:hover {
    background-color: var(--bg-light);
}

.badge-red-counter {
    background: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.75rem;
}

.dropdown-flyout-box {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    width: 320px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    padding: 15px;
}

.notification-dropdown-anchor:hover .dropdown-flyout-box {
    display: block;
}

/* Dashboard Columns Structure */
.dashboard-columns-body {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 20px;
}

.sidebar-left-network {
    width: 320px;
    flex-shrink: 0;
}

.main-column-feed {
    flex: 1;
    min-width: 0;
    min-height: 450px;
}

/* Internal Row Components */
.network-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-light);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    border: 1px solid transparent;
    transition: background-color 0.2s;
}

.network-row-item:hover {
    background: var(--bg-light-hover);
}

.network-link-user {
    color: var(--text-main);
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-dot-active {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
}

.badge-pending-status {
    font-size: 0.8rem;
    color: #856404;
    background: #fff3cd;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-weight: bold;
}
