@import url('https://fonts.googleapis.com/css2?family=Bitcount+Prop+Double+Ink:wght@100..900&family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Silkscreen&display=swap');

/* --- Ethereal Cloud Theme Setup --- */
body {
    background-image: url('assets/wallpapers/cloudy.jpeg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: #e2e8f0;
    font-family: "Courier New", Courier, monospace;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Celestial Headings */
h1, h2, h3 {
    font-family: 'Silkscreen', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    color: #f0fdf4;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.8), 0 0 30px rgba(192, 132, 252, 0.5);
    font-size: 2.8rem;
    margin: 10px 0;
    text-align: center;
}

/* Main Frosted Glass Container Frame */
.wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(10, 20, 40, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 2px solid rgba(125, 211, 252, 0.5);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 0 20px rgba(56, 189, 248, 0.1);
    padding: 20px;
    border-radius: 8px;
}

/* Retro Table Layout */
.layout-table {
    width: 100%;
    border-collapse: collapse;
}

.sidebar {
    width: 250px;
    vertical-align: top;
    padding-right: 20px;
    border-right: 2px dashed rgba(125, 211, 252, 0.3);
}

.content {
    vertical-align: top;
    padding-left: 20px;
}

/* Glass Content Box */
.demonic-box {
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.demonic-box h3 {
    margin-top: 0;
    margin-bottom: 0;
    color: #DCA98E;
    border-bottom: 1px dashed rgba(125, 211, 252, 0.3);
    padding-bottom: 5px;
}

.dashed-hr {
  border: none;
  border-top: 2px dashed rgba(125, 211, 252, 0.3);
  background-color: transparent;
  height: 0;                      
  margin: 20px 0;
}

/* Links & Buttons */
a {
    color: #38bdf8;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #fef08a;
    background-color: rgba(56, 189, 248, 0.3);
    text-shadow: none;
}

/* Sidebar Menu Links */
.menu-link {
    display: block;
    padding: 10px 0;
    color: #7dd3fc;
    text-decoration: none;
    border-bottom: 1px dashed rgba(56, 189, 248, 0.5);
    font-family: 'Silkscreen', monospace;
    text-transform: lowercase; /* Matches the lowercase style of your inspo */
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

/* Removes the dashed line under the very last item */
.menu-link:last-child {
    border-bottom: none;
}

/* Generates the little arrow icon before the text */
.menu-link::before {
    content: '▶';
    color: #DCA98E; /* Matches the green from your online status indicator */
    font-size: 10px;
    margin-right: 10px;
    vertical-align: middle;
    transition: color 0.2s ease;
    display: inline-block;
}

/* Hover effects */
.menu-link:hover {
    color: #fef08a;
    padding-left: 5px; /* Creates a smooth indentation slide on hover */
}

.menu-link:hover::before {
    color: #fef08a;
}

/* Sky-Glass Portal Buttons */
.portal-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #DCA98E;
    padding: 8px 12px;
    margin: 6px 0;
    font-family: monospace;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.portal-btn:hover {
    background: rgba(56, 189, 248, 0.85);
    color: #0f172a;
    border-color: #38bdf8;
}

.portal-btn:hover .status-indicator {
    color: #0f172a;
    text-shadow: none;
}

/* Embedded Status Indicators */
.status-indicator {
    font-size: 0.9em;
    letter-spacing: 1px;
}

.status-indicator.online {
    color: #4ade80;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.status-indicator.offline {
    color: #94a3b8;
    text-shadow: none;
}

/* Marquee banner */
.marquee-banner {
    background: rgba(56, 189, 248, 0.85);
    backdrop-filter: blur(4px);
    color: #0f172a;
    font-weight: bold;
    padding: 6px;
    font-size: 14px;
    border-radius: 4px;
    margin-bottom: 15px;
}

hr {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), transparent);
    margin: 20px 0;
}

.footer {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 20px;
}

/* Cat Corner Frame - Portrait Mode */
.cat-frame {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 3 / 4;
    margin: 0 auto 10px auto;
    border: 1px solid rgba(56, 189, 248, 0.4);
    background-color: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border-radius: 4px;
}

.cat-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; 
    filter: brightness(95%) saturate(110%); 
}

.cat-frame img:hover {
    filter: none; 
}

/* --- Photo Gallery Layout (For /pics) --- */
.photo-gallery {
    display: grid;
    /* This automatically creates columns that fit the space, minimum 200px wide */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
    align-items: start; /* <-- ADD THIS LINE */
}

.photo-frame {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    
    /* ADD THESE TWO LINES */
    break-inside: avoid; 
    margin-bottom: 15px; 
}

.photo-frame:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.2);
    border-color: #7dd3fc;
}

.photo-frame img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    display: block;
}

.photo-frame .caption {
    color: #bae6fd;
    font-size: 13px;
    margin: 10px 0 2px 0;
    font-family: monospace;
    letter-spacing: 1px;
}

/* --- Lightbox Styles --- */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 20, 40, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: auto;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid rgba(125, 211, 252, 0.5);
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #bae6fd;
    padding: 15px 0;
    font-family: monospace;
    font-size: 16px;
    letter-spacing: 1px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #7dd3fc;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: #fef08a;
}

/* Make gallery images look clickable (changes the mouse pointer) */
.photo-frame img {
    cursor: pointer;
}

/* --- For Mobile Browsers --- */
@media (max-width: 800px) {
    .layout-table, 
    .layout-table tbody, 
    .layout-table tr, 
    .layout-table td {
        display: block;
        width: 100%;
        box-sizing: border-box; 
    }

    .sidebar {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
        padding-right: 0;
        border-right: none;
    }

    .content {
        padding-left: 0;
    }

    h1 {
        font-size: 28px;
    }
    .photo-gallery {
        flex-direction: column; /* Stacks the columns on top of each other for phones */
    }
}