/* ============================================
   gPOTATU GAME PORTAL - Old School 2000s Style
   Inspired by GPotatu.com circa 2008-2011
   ============================================ */

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

/* === BODY === */
body {
    font-family: Verdana, Tahoma, Geneva, sans-serif;
    font-size: 11px;
    color: #333;
    background: #e8e8e8;
    min-height: 100vh;
}

/* === UTILITY BAR (top-most) === */
#utility-bar {
    background: #FFFFFF;
    border-bottom: 1px solid #ddd;
    font-size: 11px;
    height: 28px;
    line-height: 28px;
}

.utility-inner {
    width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utility-left {
    color: #888;
    font-size: 10px;
}

.utility-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.utility-right a {
    color: #555;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
}

.utility-right a:hover {
    color: #FF6600;
    text-decoration: underline;
}

.utility-right .sep {
    color: #ccc;
    font-size: 10px;
}

.lang-select {
    font-size: 10px;
    padding: 1px 4px;
    border: 1px solid #ccc;
    background: #fff;
    color: #555;
    cursor: pointer;
}

/* === HEADER BAR (orange) === */
#header-bar {
    background: linear-gradient(180deg, #FF9900 0%, #FF8800 40%, #EE7700 70%, #DD6600 100%);
    border-bottom: 3px solid #CC5500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    height: 50px;
}

.header-inner {
    width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    gap: 12px;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
}

/* Header Inline Login */
.header-login {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.header-login label {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 11px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.login-field {
    padding: 3px 6px;
    border: 1px solid #CC5500;
    border-radius: 3px;
    font-size: 11px;
    background: #FFF;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.login-field:focus {
    outline: none;
    border-color: #FF4400;
    box-shadow: 0 0 4px rgba(255,102,0,0.5);
}

.btn-login {
    background: linear-gradient(180deg, #FFCC00 0%, #FF9900 50%, #EE8800 100%);
    border: 2px outset #FFAA00;
    border-radius: 4px;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 11px;
    padding: 4px 12px;
    cursor: pointer;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.btn-login:hover {
    background: linear-gradient(180deg, #FFDD33 0%, #FFAA00 50%, #FF9900 100%);
    box-shadow: 0 0 6px rgba(255,153,0,0.5);
}

.btn-login:active {
    border-style: inset;
}

/* Header Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
}

.nav-link {
    display: block;
    padding: 8px 14px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    border-left: 1px solid rgba(255,255,255,0.2);
    transition: background 0.15s;
}

.nav-link:last-child {
    border-right: 1px solid rgba(255,255,255,0.2);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.2);
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

/* === MAIN WRAPPER === */
#wrapper {
    width: 960px;
    margin: 0 auto;
    background: #FFFFFF;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* === TOP SECTION: BANNER + SIDEBAR === */
#top-section {
    display: flex;
    gap: 0;
    border-bottom: 3px solid #FF9900;
}

/* --- Main Banner --- */
#main-banner {
    flex: 1;
    min-width: 0;
    height: 300px;
    position: relative;
    overflow: hidden;
    background: #111;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    padding: 20px;
    text-align: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-game-title {
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: 32px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow:
        0 0 10px rgba(255,153,0,0.8),
        0 0 20px rgba(255,153,0,0.4),
        2px 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.banner-subtitle {
    font-size: 12px;
    color: #FFCC00;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    margin-bottom: 15px;
}

.banner-image-placeholder {
    width: 200px;
    height: 140px;
    margin: 0 auto 15px;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid rgba(255,153,0,0.5);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.banner-game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-play-btn {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(180deg, #FF9900 0%, #EE7700 50%, #CC5500 100%);
    border: 2px outset #FFAA00;
    border-radius: 5px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.banner-play-btn:hover {
    background: linear-gradient(180deg, #FFAA33 0%, #FF9900 50%, #DD6600 100%);
    box-shadow: 0 0 12px rgba(255,153,0,0.6);
    transform: scale(1.05);
}

/* Banner Indicators */
.banner-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.2s;
}

.indicator.active,
.indicator:hover {
    background: #FF9900;
    border-color: #FFCC00;
    box-shadow: 0 0 6px rgba(255,153,0,0.6);
}

/* --- Right Sidebar --- */
#right-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #F5F5F5;
    border-left: 1px solid #ddd;
}

.sidebar-box {
    border-bottom: 1px solid #ddd;
}

.sidebar-box-header {
    background: linear-gradient(180deg, #FF9900 0%, #EE7700 100%);
    padding: 6px 10px;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.box-icon {
    font-size: 12px;
}

.sidebar-box-content {
    padding: 10px;
}

/* Sidebar Login Form */
.sidebar-login-form {
    margin-bottom: 8px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.form-row label {
    width: 25px;
    font-weight: bold;
    font-size: 11px;
    color: #555;
}

.sidebar-field {
    flex: 1;
    padding: 3px 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 11px;
}

.sidebar-field:focus {
    outline: none;
    border-color: #FF9900;
    box-shadow: 0 0 3px rgba(255,153,0,0.3);
}

.btn-sidebar-login {
    width: 100%;
    padding: 5px;
    background: linear-gradient(180deg, #FF9900 0%, #DD6600 100%);
    border: 1px solid #CC5500;
    border-radius: 3px;
    color: #FFF;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
    margin-top: 3px;
}

.btn-sidebar-login:hover {
    background: linear-gradient(180deg, #FFAA33 0%, #EE7700 100%);
}

.login-links {
    font-size: 10px;
    color: #666;
    line-height: 1.6;
}

.login-links a {
    color: #FF6600;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.register-link {
    font-weight: bold;
    color: #FF3300 !important;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.social-btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    color: #FFF;
    text-decoration: none;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    transition: all 0.2s;
}

.social-discord {
    background: linear-gradient(180deg, #7289DA, #5B6EAE);
    border: 1px solid #4E5D94;
}

.social-youtube {
    background: linear-gradient(180deg, #FF0000, #CC0000);
    border: 1px solid #990000;
}

.social-twitter {
    background: linear-gradient(180deg, #1DA1F2, #0D8ECF);
    border: 1px solid #0A7AB8;
}

.social-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Server Status */
.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px dotted #ddd;
}

.status-row:last-child {
    border-bottom: none;
}

.status-name {
    font-size: 11px;
    font-weight: bold;
    color: #444;
}

.status-indicator {
    font-size: 9px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 1px;
}

.status-indicator.online {
    background: #4CAF50;
    color: #FFF;
    box-shadow: 0 0 4px rgba(76,175,80,0.5);
    animation: statusPulse 2s ease-in-out infinite;
}

.status-indicator.dev {
    background: #FF9800;
    color: #FFF;
}

.status-indicator.coming {
    background: #9E9E9E;
    color: #FFF;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 4px rgba(76,175,80,0.5); }
    50% { box-shadow: 0 0 8px rgba(76,175,80,0.8); }
}

/* === THREE COLUMNS === */
#three-columns {
    display: flex;
    gap: 0;
    border-top: 1px solid #eee;
}

.column {
    border-right: 1px solid #eee;
}

.column:last-child {
    border-right: none;
}

.column-left {
    width: 220px;
    flex-shrink: 0;
}

.column-center {
    flex: 1;
    min-width: 0;
}

.column-right {
    width: 240px;
    flex-shrink: 0;
}

.column-header {
    background: linear-gradient(180deg, #F8F8F8 0%, #EEEEEE 100%);
    border-bottom: 2px solid #FF9900;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column-header h3 {
    font-size: 12px;
    color: #FF6600;
    font-family: Verdana, Tahoma, sans-serif;
}

.more-link {
    font-size: 10px;
    color: #999;
    text-decoration: none;
}

.more-link:hover {
    color: #FF6600;
}

.column-content {
    padding: 10px;
}

/* === NEWS LIST === */
.news-list {
    list-style: none;
}

.news-list li {
    padding: 5px 0;
    border-bottom: 1px dotted #ddd;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-icon {
    display: inline-block;
    padding: 1px 5px;
    font-size: 8px;
    font-weight: bold;
    color: #FFF;
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 1px;
    letter-spacing: 0.5px;
}

.news-icon-new { background: #FF3300; }
.news-icon-update { background: #FF9900; }
.news-icon-event { background: #4CAF50; }

.news-list a {
    color: #333;
    text-decoration: none;
    font-size: 11px;
    line-height: 1.4;
}

.news-list a:hover {
    color: #FF6600;
    text-decoration: underline;
}

/* === EVENTS === */
.events-content {
    display: flex;
    gap: 8px;
}

.event-thumb {
    text-align: center;
    flex: 1;
}

.event-img-placeholder {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #FF9900, #FF6600);
    border: 2px solid #CC5500;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-weight: bold;
    font-size: 11px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    margin-bottom: 4px;
}

.event-thumb p {
    font-size: 10px;
    color: #555;
    line-height: 1.3;
}

.event-thumb small {
    color: #999;
}

/* === GAMES SHOWCASE (center column) === */
.featured-game {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px dotted #ddd;
}

.featured-game-img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 6px;
    border: 2px solid #ddd;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    display: block;
    margin: 0 auto 10px;
    transition: border-color 0.2s;
}

.featured-game-img:hover {
    border-color: #FF9900;
    box-shadow: 0 3px 12px rgba(255,153,0,0.3);
}

.featured-game-info h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.featured-game-info p {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
}

.btn-view-game {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(180deg, #EEEEEE, #CCCCCC);
    border: 1px solid #999;
    border-radius: 3px;
    color: #333;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}

.btn-view-game:hover {
    background: linear-gradient(180deg, #FF9900, #DD6600);
    color: #FFF;
    border-color: #CC5500;
}

/* Game Grid */
.game-grid {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.game-card {
    width: 120px;
    text-align: center;
}

.game-card a {
    text-decoration: none;
    display: block;
}

.game-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #ddd;
    display: block;
    margin-bottom: 4px;
    transition: border-color 0.2s;
}

.game-card:hover img {
    border-color: #FF9900;
}

.game-card-name {
    display: block;
    font-size: 10px;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.game-card-status {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 2px;
    font-size: 9px;
    font-weight: bold;
    color: #FFF;
}

.status-dev { background: #FF9800; }
.status-soon { background: #9E9E9E; }
.status-online { background: #4CAF50; }

/* === STORE ITEMS === */
.store-item {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dotted #ddd;
}

.store-item:last-child {
    border-bottom: none;
}

.store-item-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #FFF8E1, #FFE082);
    border: 1px solid #FFB300;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.store-item-info {
    font-size: 11px;
    color: #444;
    line-height: 1.4;
}

.store-item-info strong {
    color: #333;
}

.store-price {
    font-size: 10px;
    color: #888;
}

.store-price del {
    color: #bbb;
}

.store-price em {
    color: #FF3300;
    font-style: normal;
    font-weight: bold;
}

.store-badge {
    display: inline-block;
    background: #FF3300;
    color: #FFF;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 2px;
    margin-left: 4px;
}

/* === DOWNLOADS === */
.download-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    border-bottom: 1px dotted #ddd;
}

.download-item:last-child {
    border-bottom: none;
}

.dl-icon {
    font-size: 14px;
}

.download-item a {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 11px;
}

.download-item a:hover {
    color: #FF6600;
    text-decoration: underline;
}

.dl-size {
    font-size: 9px;
    color: #999;
    white-space: nowrap;
}

/* === ABOUT BAR === */
#about-bar {
    background: linear-gradient(180deg, #FFF8E1 0%, #FFE0B2 100%);
    border-top: 2px solid #FF9900;
    border-bottom: 2px solid #FF9900;
    padding: 15px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-logo {
    height: 35px;
    width: auto;
    flex-shrink: 0;
}

.about-content p {
    font-size: 11px;
    color: #555;
    line-height: 1.5;
}

/* === FOOTER === */
#main-footer {
    background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
    border-top: 3px solid #FF9900;
    padding: 20px;
    text-align: center;
}

.footer-logo-img {
    height: 30px;
    width: auto;
    opacity: 0.7;
    margin-bottom: 10px;
    filter: brightness(2);
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 11px;
}

.footer-links a:hover {
    color: #FF9900;
    text-decoration: underline;
}

.footer-links .sep {
    color: #555;
    margin: 0 5px;
}

.footer-copyright {
    color: #777;
    font-size: 10px;
    line-height: 1.6;
}

.footer-copyright small {
    color: #555;
    font-style: italic;
}

/* === SELECTION === */
::selection {
    background: #FF9900;
    color: #FFF;
}

/* === SCROLLBAR (Webkit) === */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF9900, #CC5500);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFAA33, #DD6600);
}

/* === LINK GENERAL === */
a {
    color: #FF6600;
    transition: color 0.15s;
}

a:hover {
    color: #FF3300;
}
