/* Global dark theme */
body, .site-body {
    margin: 0;
    padding: 0;
    background: #0a0a0a;
    color: #e5e5e5;
    font-family: system-ui, sans-serif;
    line-height: 1.5;
}

/* Header */
.site-header {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
}

.site-logo {
    max-width: 160px; /* restored original size */
    height: auto;
}

.site-subtitle {
    margin: 0;
    font-size: 1.05rem;
    opacity: 0.75;
}

/* Global site menu bar */
.site-menu {
    width: 100%;
    background: #000;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    margin: 0 0 2rem 0;
    padding: 0;
}

.site-menu ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.site-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.site-menu a:hover,
.site-menu a:focus {
    text-decoration: underline;
}

/* Tiles wrapper */
.tiles-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

/* Hero tile */
.hero-tile {
    grid-column: 1 / -1;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem; /* <-- adds spacing below hero tile */
}

.hero-tile h2 {
    margin-top: 0;
    font-size: 1.6rem;
}

.tech-line {
    opacity: 0.6;
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

/* Regular tiles for index.php */
.tile {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #111;
    border: 1px solid #222;
    padding: 1.5rem;
    border-radius: 8px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.tile h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.tile:hover {
    background: #181818;
    border-color: #333;
}

/* Info tile for myip.php table */
.info-tile {
    grid-column: 1 / -1;
    padding: 1.5rem;
    margin-bottom: 0; /* remove extra spacing */
}

/* Styled table matching FS HOT tile aesthetic */
.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    font-size: 0.95rem;
}

/* Table rows */
.info-table th,
.info-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #333;
}

/* Remove bottom border on last row */
.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

/* Header cells */
.info-table th {
    width: 40%;
    font-weight: bold;
    text-align: left;
    color: #ddd;
    background: #0d0d0d;
}

/* Data cells */
.info-table td {
    color: #fff;
    word-break: break-word;
}

/* Responsive table: stack cells on narrow screens */
@media (max-width: 500px) {
    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        border-bottom: none;
    }
    .info-table th {
        padding-bottom: 0.3rem;
    }
    .info-table td {
        padding-top: 0;
        margin-bottom: 1rem;
        border-bottom: 1px solid #333;
    }
}

/* Footer */
.site-footer {
    margin-top: 0rem;
    text-align: center;
    padding: 1rem 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

.server-time {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.5;
}

.info-table td.status-green {
    color: #4caf50 !important; /* green */
    font-weight: 600;
}

.info-table td.status-red {
    color: #e53935 !important; /* red */
    font-weight: 600;
}

