/* Root variables for colors */
:root {
    --bg: #0d0d0d;
    --accent: #ff66cc;
    --text: #ffffff;
    --subcat-bg: rgba(255, 255, 255, 0.05);
    --panel-bg: rgba(30,30,30,0.95);
    --hover-glow: #ff66cc;
}

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

body {
    font-family: 'MS PGothic', sans-serif;
    background: linear-gradient(135deg, #111111, #1a1a1a);
    color: var(--text);
    overflow-x: hidden;
}

/* 18+ Overlay */
#overlay18 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000dd;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-screen {
    background: linear-gradient(to bottom, #222, #111);
    border: 4px ridge var(--accent);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    color: var(--text);
    animation: flicker 1s infinite alternate;
}

.phone-screen h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.phone-screen p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.phone-screen .buttons {
    display: flex;
    justify-content: space-around;
}

.phone-screen button {
    padding: 8px 15px;
    font-size: 1rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.phone-screen button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent);
}

/* Flicker animation */
@keyframes flicker {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.85; }
}

/* Header */
header {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-bottom: 3px solid var(--accent);
}

header .header-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* NEW: Poppins font for ASIILKA */
header #username {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--accent);
    animation: wiggle 1.5s infinite;
    letter-spacing: 2px;
}

/* Wiggle animation for ASIILKA */
@keyframes wiggle {
    0%, 100% { transform: translate(-50%, -50%) rotate(-2deg); }
    50% { transform: translate(-50%, -50%) rotate(2deg); }
}

/* Sidebar */
#sidebar-container {
    position: fixed;
    top: 160px;
    left: 0;
    width: 120px;
    bottom: 0;
    background: #111;
    border-right: 2px solid var(--accent);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#sidebar li {
    list-style: none;
    padding: 10px;
    margin: 5px 0;
    cursor: pointer;
    text-align: center;
    border-radius: 5px;
    transition: all 0.2s ease;
}

#sidebar li:hover,
#sidebar li.active {
    background: var(--hover-glow);
    color: #000;
    font-weight: bold;
}

/* Panels */
#panels {
    margin-left: 130px;
    padding: 20px;
}

/* Subcategories */
.subcat {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.subcat button {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--accent);
    background: var(--subcat-bg);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.subcat button.active,
.subcat button:hover {
    background: var(--hover-glow);
    color: #000;
}

/* Grid for images */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

/* General images (square thumbnails) */
.grid img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 2px solid var(--accent);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent);
}

/* OC specific layout */
.oc-item {
    position: relative;
    display: inline-block;
    margin: 5px;
    width: 200px;
    height: 200px;
}

.oc-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000cc;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.2s ease;
    border-radius: 10px;
}

.oc-item:hover .oc-hover {
    opacity: 1;
}

.oc-hover .oc-btn {
    margin-top: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.oc-hover .oc-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--accent);
}

/* Enlarge overlay */
#enlargeOverlay {
    position: fixed;
    top:0;
    left:0;
    width: 100%;
    height:100%;
    background: rgba(0,0,0,0.95);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#enlargeOverlay img {
    max-width: 80%;
    max-height: 80%;
    border: 3px solid var(--accent);
    border-radius: 10px;
    margin-bottom: 10px;
}

#sheetBtn {
    padding: 8px 15px;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

/* Links */
#links a {
    display: block;
    padding: 8px;
    margin-bottom: 10px;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--accent);
    border-radius: 6px;
    transition: all 0.2s ease;
}

#links a:hover {
    background: var(--hover-glow);
    color: #000;
}

/* Back button */
.back-btn {
    padding: 10px 20px;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
}

/* -------------------- */
/* NEW: Home page sections side by side and labels */
#home .grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

#home .grid > div {
    flex: 1 1 45%;
    background: rgba(30,30,30,0.6);
    padding: 15px;
    border: 2px solid var(--accent);
    border-radius: 10px;
}

#home .grid > div h3 {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--accent);
    position: relative;
    top: -2px;
    transition: transform 0.3s ease;
}

#home .grid > div:hover h3 {
    transform: translateY(-3px);
    text-shadow: 0 0 5px var(--accent);
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
    #sidebar-container {
        width: 80px;
    }
    #panels {
        margin-left: 90px;
        padding: 10px;
    }
    .grid img {
        width: 150px;
        height: 150px;
    }
    .oc-item {
        width: 150px;
        height: 150px;
    }
}

@media screen and (max-width: 600px) {
    header #username {
        font-size: 2rem;
    }
    #sidebar-container {
        display: none;
    }
    #panels {
        margin-left: 10px;
        padding: 5px;
    }
    .grid img, .oc-item {
        width: 100%;
        height: auto;
    }
}