/* =============================================
   CatGirlNET - Main Stylesheet
   Retro Y2K Portal Style
   ============================================= */

/* --- Base --- */
body {
    background-color: #008080;
    background-image: radial-gradient(#007070 1px, transparent 1px);
    background-size: 3px 3px;
    font-family: "Verdana", "Arial", sans-serif;
    font-size: 12px;
    margin: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
}

/* --- Layout --- */
.portal-container {
    background-color: #FFFFFF;
    width: 100%;
    max-width: 800px;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #4a4a4a;
    border-bottom: 2px solid #4a4a4a;
    box-shadow: 3px 3px 0px #000000;
    display: flex;
    flex-direction: column;
}

.portal-body {
    display: grid;
    grid-template-columns: 160px 1fr 180px;
}

/* --- Header --- */
.header {
    background: linear-gradient(to right, #ff66cc, #ffb3e6);
    padding: 15px 10px;
    text-align: center;
    border-bottom: 2px solid #000000;
}

.header-tagline {
    color: #ffffff;
    margin: 0;
}

/* --- Sidebars --- */
.sidebar-left,
.sidebar-right {
    background-color: #f1f1f1;
    padding: 10px;
}

.sidebar-left { border-right: 1px solid #999999; }
.sidebar-right { border-left: 1px solid #999999; }

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 11px; /* matches original <font size="2"> */
}

.sidebar-links li::before {
    content: "· ";
}

/* --- Main Content --- */
.main-content {
    padding: 15px;
    background-color: #ffffff;
}

/* --- Win Box (Windows 98-style widget) --- */
.win-box {
    border: 1px solid #ffffff;
    border-bottom: 2px solid #808080;
    border-right: 2px solid #808080;
    background-color: #d4d0c8;
    padding: 2px;
    margin-bottom: 12px;
}

.win-title {
    background-color: #000080;
    color: #ffffff;
    font-weight: bold;
    font-size: 11px;
    padding: 2px 5px;
    /* Required for animated player title */
    height: 14px;
    line-height: 14px;
    white-space: nowrap;
    overflow: hidden;
}

.win-body {
    padding: 6px;
    font-size: 11px;
    background-color: #f1f1f1;
}

.win-body-white {
    background-color: #ffffff;
}

/* --- Login Form --- */
.form-label {
    font-size: 10px;
}

.form-input {
    font-size: 10px;
    width: 100%;
    box-sizing: border-box;
}

.form-submit-row {
    text-align: center;
}

.retro-btn {
    font-size: 10px;
    margin-top: 5px;
    cursor: pointer;
}

/* --- Admin Panel --- */
.admin-panel {
    display: none; /* shown via JS when logged in */
    text-align: center;
    padding: 5px 0;
}

.admin-title {
    color: red;
}

.admin-level {
    font-size: 10px;
    color: #008000;
}

.admin-btn {
    margin-top: 8px;
}

/* --- Media Player --- */
.player-body {
    text-align: center;
}

.player-btn {
    font-size: 9px;
    margin-top: 3px;
}

/* --- Stories Section --- */
.stories-section {
    margin-bottom: 15px;
}

.section-header {
    padding: 4px;
    background: #ff00ff;
    color: white;
    font-size: 11px; /* matches original <font size="2"> */
}

.story-container {
    border: 1px solid #ff00ff;
    padding: 10px;
    background-color: #fafafa;
}

.story-layout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.story-banner {
    display: inline-block;
    flex-shrink: 0;
    width: 100px;
    height: 75px;
    background-color: #ff99cc;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    line-height: 75px;
    border: 1px solid #000000;
    font-family: "Impact", sans-serif;
    font-size: 18px;
    /* Retro text outline */
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.story-title-text {
    font-size: 13px; /* matches original <font size="3"> */
}

.story-clearfix {
    clear: both;
}

/* --- Under Construction --- */
.under-construction {
    text-align: center;
}

.undercon-img {
    cursor: help;
}

.undercon-text {
    font-size: 11px;
    color: #666666;
}

/* --- Guestbook --- */
.guestbook-box {
    margin-top: 15px;
}

.guestbook-body {
    background-color: #000000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    height: 120px;
    overflow-y: scroll;
    padding: 5px;
}

/* --- Sidebar Right --- */
.clock-body {
    text-align: center;
}

.clock-display {
    font-family: monospace;
    font-size: 14px;
}

.fortune-btn {
    width: 100%;
    font-size: 10px;
    margin-bottom: 5px;
    font-weight: bold;
}

.cat-body {
    text-align: center;
}

.mascot-icon {
    font-size: 20px;
    margin: 5px 0;
    cursor: pointer;
    user-select: none;
}

/* --- Utility --- */
.small-text {
    font-size: 10px; /* matches original <font size="1"> or "2" depending on context */
}

/* --- Links --- */
a { color: #0000ff; text-decoration: underline; }
a:hover { color: #ff00ff; background-color: #ffff00; }

/* --- Marquee --- */
marquee {
    background: #000000;
    color: #00ff00;
    font-family: "Courier New", monospace;
    font-size: 11px;
    padding: 2px;
    border: 1px inset #ffffff;
    margin-top: 8px;
}

/* --- HR --- */
hr {
    border: none;
    border-top: 1px solid #999999;
    border-bottom: 1px solid #ffffff;
    margin: 8px 0;
}

/* --- Footer --- */
.footer {
    background-color: #cccccc;
    text-align: center;
    border-top: 1px solid #999999;
    padding: 15px;
}

.footer-buttons {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-btn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-btn-label {
    font-size: 12px;
    margin-bottom: 5px;
}

.footer-bottom {
    text-align: center;
}

.visitor-counter {
    margin-bottom: 10px;
}

.badge-row {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.badge-row a img {
    margin: 2px;
}

/* --- Responsive --- */
@media (max-width: 700px) {
    .portal-body { grid-template-columns: 1fr; }
    .sidebar-left, .sidebar-right { border: none; border-bottom: 1px solid #999999; }
    .sidebar-left { order: 2; }
    .main-content { order: 1; }
    .sidebar-right { order: 3; }
}

@media screen and (min-width: 700px) {
    body {
        zoom: 130%;
    }
}
