:root {
    --gta-yellow: #f4c400; /* Classic GTA IV Logo Yellow */
    --gta-dark: #111111;
    --gta-darker: #080808;
    --gta-grey: #2a2a2a;
    --gta-light-grey: #888888;
    --text-main: #f0f0f0;
    --gta-blue: #3b5998; /* Police blue accent */
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--gta-darker);
    color: var(--text-main);
    overflow-x: hidden;
}

/* CRT Scanline Effect & Vignette */
.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 999;
    pointer-events: none;
    opacity: 0.4;
}

.vignette {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle, rgba(0,0,0,0) 40%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

/* --- TOP HEADER --- */
.top-header {
    background-image: linear-gradient(to bottom, rgba(17,17,17,0.4), rgba(8,8,8,0.8)), url('../assets/images/homepage_image_1.jpg');
    background-size: cover;
    background-position: center;
    height: 220px;
    position: relative;
    z-index: 2;
    border-bottom: 5px solid var(--gta-yellow);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo-area {
    position: absolute;
    top: 25px;
    left: 20px;
}

.simple-logo {
    font-family: 'Changa One', sans-serif;
    font-size: 3.5rem;
    color: #ffffff;
    -webkit-text-stroke: 1.5px #000;
    text-shadow: 4px 4px 0px #000, 6px 6px 10px rgba(0,0,0,0.8);
    transform: skewX(-5deg);
    margin: 0;
    line-height: 1;
    letter-spacing: 2px;
}

.simple-logo span {
    color: var(--gta-yellow);
}

.wanted-stars {
    color: var(--gta-dark);
    text-shadow: 0 0 2px var(--gta-yellow), 0 0 5px var(--gta-yellow);
    font-size: 1.5rem;
    margin-top: 5px;
    letter-spacing: 5px;
    transform: skewX(-5deg);
}

.wanted-stars .active {
    color: var(--gta-yellow);
    text-shadow: none;
}

.top-nav {
    align-self: flex-end;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    display: flex;
    gap: 20px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    align-items: center;
}

.top-nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    transition: 0.2s;
}

.top-nav a:hover {
    color: var(--gta-yellow);
}

/* --- USER DROPDOWN --- */
.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.user-profile-link {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 5px 10px !important;
}

.nav-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--gta-yellow);
}

.nav-avatar-icon {
    font-size: 1.4rem;
    color: #fff;
}

.dropdown-arrow {
    font-size: 0.8rem !important;
    margin-left: 2px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(17, 17, 17, 0.95);
    min-width: 150px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.8);
    z-index: 1000;
    border: 1px solid var(--gta-grey);
    border-top: none;
    flex-direction: column;
}

.user-dropdown:hover .dropdown-content {
    display: flex;
}

.dropdown-content a {
    padding: 10px 15px !important;
    text-align: left;
    font-size: 1rem !important;
    color: #fff !important;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--gta-yellow) !important;
}

.logout-link:hover {
    background-color: rgba(231, 76, 60, 0.2) !important;
    color: #e74c3c !important;
}

/* --- MAIN LAYOUT --- */
.main-layout {
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    position: relative;
    z-index: 2;
    padding: 0 10px;
}

/* --- LEFT COLUMN --- */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* PHOTO GALLERY */
.photo-gallery {
    position: relative;
    height: 400px;
    border: 3px solid #000;
    background: #111;
    overflow: hidden;
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.gallery-img.active {
    opacity: 1;
}

.gallery-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.gallery-controls button {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 2px solid #000;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.gallery-controls button:hover {
    background: var(--gta-yellow);
    color: #000;
}

.content-block {
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid var(--gta-grey);
    padding: 0;
}

.block-header {
    border-bottom: 1px solid var(--gta-grey);
    padding: 15px 20px;
}

.block-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--gta-yellow);
    letter-spacing: 1px;
}

.block-body {
    padding: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
}

/* --- RIGHT COLUMN --- */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-banner {
    display: block;
    text-align: center;
    padding: 10px 15px; /* Thinner padding */
    font-family: 'Bebas Neue', sans-serif; /* Less aggressive font than Changa One */
    font-size: 1.5rem; /* Smaller text */
    text-decoration: none;
    color: #fff;
    border: 2px solid #000;
    transition: 0.2s;
}

.btn-launcher {
    background: var(--gta-darker);
    color: var(--gta-yellow);
    border: 2px solid var(--gta-yellow);
    box-shadow: 4px 4px 0px #000;
}
.btn-launcher:hover { 
    background: var(--gta-yellow); 
    color: #000;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

.sidebar-block {
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid var(--gta-grey);
}

.sidebar-header {
    background: #5d7c71;
    padding: 10px 15px;
    border-bottom: 2px solid #000;
}

.sidebar-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
}

.sidebar-body {
    padding: 15px;
}

.news-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}
.news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-title {
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.95rem;
}
.news-title:hover {
    color: var(--gta-yellow);
}

.news-meta {
    font-size: 0.8rem;
    color: #888;
}

.status-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.status-row:last-child {
    margin-bottom: 0;
}

.s-label {
    color: #aaa;
}

.s-value {
    color: #fff;
    font-weight: bold;
}

.social-squares {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
}

.social-sq {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-size: 2.2rem;
    color: #ccc;
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid var(--gta-grey);
    text-decoration: none;
    transition: 0.2s;
    box-shadow: 2px 2px 0px #000;
}

.social-sq:hover {
    color: var(--gta-yellow);
    border-color: var(--gta-yellow);
    transform: translateY(-3px);
}

.bottom-footer {
    text-align: center;
    padding: 20px;
    background: #000;
    color: #666;
    margin-top: 40px;
    position: relative;
    z-index: 2;
    border-top: 1px solid #333;
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .top-header {
        height: auto;
        padding-top: 20px;
    }

    .header-container {
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .logo-area {
        position: relative;
        top: 0;
        left: 0;
        text-align: center;
    }

    .simple-logo {
        font-size: 2.5rem;
    }

    .top-nav {
        align-self: center;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        border-radius: 0;
        padding: 10px 5px;
        gap: 15px;
    }
}
