@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'MS UI Gothic', sans-serif;
}

/* CRT TV Filter Overlay */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0) 0px,
            rgba(0, 0, 0, 0) 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0) 0px,
            rgba(0, 0, 0, 0) 1px,
            rgba(0, 0, 0, 0.05) 1px,
            rgba(0, 0, 0, 0.05) 2px
        ),
        radial-gradient(ellipse at center, 
            rgba(0, 0, 0, 0) 0%, 
            rgba(0, 0, 0, 0) 70%, 
            rgba(0, 0, 0, 0.2) 100%);
    animation: crtFlicker 0.15s infinite linear alternate;
}

@keyframes crtFlicker {
    0% { opacity: 1; }
    98% { opacity: 1; }
    99% { opacity: 0.98; }
    100% { opacity: 1; }
}

body {
    background: #2a2a2a url('https://i.pinimg.com/736x/f6/ec/2f/f6ec2f64fa25a32b9814171b709941d9.jpg') repeat;
    font-family: 'MS UI Gothic', sans-serif;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 20px;
    filter: contrast(1.1) brightness(1.05) saturate(1.2);
}

/* Floating background elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-gif {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.3;
}

.floating-1 {
    bottom: 15%;
    left: 5%;
    animation: float1 12s ease-in-out infinite;
}

.floating-2 {
    top: 20%;
    right: 8%;
    animation: float2 15s ease-in-out infinite;
    animation-delay: 2s;
}

.floating-gif img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

@keyframes float1 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-30px) rotate(-5deg); 
    }
}

@keyframes float2 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-25px) rotate(5deg); 
    }
}

/* Page Container */
.page-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Main Window */
.main-window {
    background: linear-gradient(to bottom, 
        rgba(30, 30, 30, 0.98) 0%, 
        rgba(20, 20, 20, 0.98) 50%, 
        rgba(10, 10, 10, 0.98) 100%);
    border: 3px ridge #555;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), 
                inset 0 0 20px rgba(0, 0, 0, 0.5);
    animation: windowFloat 8s ease-in-out infinite;
}

@keyframes windowFloat {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-5px); 
    }
}

.window-header {
    background: linear-gradient(to bottom, #666 0%, #333 100%);
    border-bottom: 2px solid #000;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.window-title {
    color: white;
    font-family: 'MS UI Gothic', sans-serif;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.control-btn {
    width: 18px;
    height: 16px;
    border: 1px outset #c0c0c0;
    background: #c0c0c0;
    font-size: 10px;
    text-align: center;
    line-height: 14px;
    cursor: pointer;
    color: black;
    font-weight: bold;
}

.control-btn:hover {
    background: #d0d0d0;
}

.control-btn:active {
    border: 1px inset #c0c0c0;
}

/* Browser Tabs */
.tab-bar {
    background: linear-gradient(to bottom, #555 0%, #333 100%);
    border-bottom: 2px solid #000;
    display: flex;
    gap: 2px;
    padding: 4px 4px 0 4px;
}

.tab {
    background: linear-gradient(to bottom, #444 0%, #333 100%);
    border: 1px solid #555;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    padding: 8px 20px;
    color: #999;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    text-transform: lowercase;
    transition: all 0.2s;
    position: relative;
    font-family: 'MS UI Gothic', sans-serif;
}

.tab:hover {
    background: linear-gradient(to bottom, #555 0%, #444 100%);
    color: #ccc;
}

.tab.active {
    background: linear-gradient(to bottom, rgba(50, 50, 50, 0.95) 0%, rgba(30, 30, 30, 0.98) 100%);
    color: white;
    border-color: #666;
}

.tab-disabled {
    cursor: default;
    opacity: 0.6;
}

.tab-disabled:hover {
    background: linear-gradient(to bottom, #444 0%, #333 100%);
    color: #999;
}

/* Main Content */
.main-content {
    padding: 30px;
    min-height: 350px;
}

/* Welcome Box */
.welcome-box {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #444;
    max-width: 750px;
    margin: 0 auto;
}

.welcome-header {
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid #333;
    padding: 15px;
}

.welcome-graphic-top {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.welcome-content {
    padding: 20px 40px 30px 40px;
    line-height: 1.8;
}

.welcome-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    text-transform: lowercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #000, 
                 0 0 20px rgba(255, 255, 255, 0.2);
}

.divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, 
        transparent 0%, 
        #666 50%, 
        transparent 100%);
    margin: 20px auto;
}

.welcome-content p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 13px;
}

.highlight {
    color: white;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.warning-text {
    color: #7a4196;
    font-weight: bold;
    text-align: center;
    margin: 25px 0;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(122, 65, 150, 0.3);
}

.welcome-footer {
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid #333;
    padding: 15px;
}

/* Sidebar content inside welcome box */
.welcome-sidebar-content {
    padding: 20px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.sidebar-box-inline {
    background: linear-gradient(to bottom, 
        rgba(30, 30, 30, 0.98) 0%, 
        rgba(20, 20, 20, 0.98) 100%);
    border: 3px ridge #555;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.welcome-graphic-bottom {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-box {
    background: linear-gradient(to bottom, 
        rgba(30, 30, 30, 0.98) 0%, 
        rgba(20, 20, 20, 0.98) 100%);
    border: 3px ridge #555;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.box-header {
    background: linear-gradient(to bottom, #666 0%, #333 100%);
    border-bottom: 2px solid #000;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    text-transform: lowercase;
    font-family: 'MS UI Gothic', sans-serif;
}

.box-content {
    padding: 12px;
    font-size: 11px;
    line-height: 1.6;
}

.status-item {
    margin-bottom: 8px;
    display: flex;
    gap: 5px;
}

.status-label {
    color: #888;
    min-width: 70px;
}

.status-value {
    color: #ccc;
}

.update-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.update-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.update-date {
    display: block;
    color: #888;
    font-size: 10px;
    margin-bottom: 3px;
}

.update-text {
    display: block;
    color: #ccc;
}

.sidebar-link {
    display: block;
    color: #999;
    text-decoration: none;
    padding: 5px 0;
    transition: all 0.2s;
    font-family: 'MS UI Gothic', monospace;
}

.sidebar-link:hover {
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    padding-left: 5px;
}

/* Status.cafe Widget Styling */
#statuscafe {
    padding: .5em;
    background-color: rgba(20, 20, 30, 0.5);
    border: 1px solid #444;
}
#statuscafe-username {
    margin-bottom: .5em;
    color: #999;
    font-weight: bold;
}
#statuscafe-content {
    margin: 0 1em 0.5em 1em;
    color: #ccc;
}
#statuscafe a {
    color: #7a4196;
    text-decoration: none;
    transition: color 0.2s;
}
#statuscafe a:hover,
#statuscafe a:active {
    color: #9e3ecf;
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    margin: 20px auto;
    width: fit-content;
    background: linear-gradient(to bottom, 
        rgba(30, 30, 30, 0.98) 0%, 
        rgba(10, 10, 10, 0.98) 100%);
    border: 2px solid #555;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    padding: 8px 20px;
    text-align: center;
    display: block;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    color: #888;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.footer-content span {
    font-family: 'MS UI Gothic', monospace;
}

.footer-section {
    font-family: 'MS UI Gothic', monospace;
}

.footer-link {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #ccc;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .page-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .main-content {
        padding: 15px;
    }

    .welcome-content {
        padding: 20px;
    }

    .welcome-title {
        font-size: 1.4rem;
    }

    .tab {
        padding: 6px 12px;
        font-size: 10px;
    }

    .tab-bar {
        overflow-x: auto;
    }

    .footer-content {
        flex-direction: column;
        gap: 8px;
    }
}