/* ============================================
   /public/css/default.css
   TFB BBS - Main Stylesheet
   Based on the original inline styles
   ============================================ */

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #007bc8;
    --accent-color: #ff0000;
    --light-text: #f0f0f0;
    --border-radius: 15px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
    color: var(--light-text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 0;
    text-align: center;
    border-radius: var(--border-radius);
    margin-bottom: 5px;
    box-shadow: var(--box-shadow);
}

.announcement {
    background-color: #1e3a1e;
    border: 3px solid #638e41;
    border-radius: var(--border-radius);
    padding: 4px 8px;
    margin: 0 auto 20px auto;
    max-width: 800px;
    text-align: center;
    font-weight: 500;
    overflow: hidden;
    color: #d4ffd4;
}

.marquee {
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: marquee 20s linear infinite;
    padding-left: 100%;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 10px auto;
    max-width: 1200px;
}

.info-card {
    background-color: #1a1a1a;
    border-radius: var(--border-radius);
    padding: 10px;
    box-shadow: var(--box-shadow);
    border: 3px solid #333;
    width: 100%;
    box-sizing: border-box;
}

.info-card:nth-child(1) { margin-right: 12px; }
.info-card:nth-child(2) { margin-left: 6px; margin-right: 6px; }
.info-card:nth-child(3) { margin-left: 12px; }

.info-card h2 {
    color: var(--secondary-color);
    margin-top: 0;
    border-bottom: 3px solid #333;
    padding-bottom: 5px;
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 3px solid #333;
    font-size: 1em;
    line-height: 1.3;
}

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

.info-label {
    font-weight: 600;
    color: var(--accent-color);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 20px auto;
    max-width: 1000px;
    width: 100%;
    box-sizing: border-box;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background-color: #1a1a1a;
    border-radius: var(--border-radius);
    border: 3px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--box-shadow);
}

.stat-item:nth-child(1) { margin-right: 12px; }
.stat-item:nth-child(2) { margin-left: 6px; margin-right: 6px; }
.stat-item:nth-child(3) { margin-left: 12px; }

.stat-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1em;
    border-bottom: 3px solid #333;
    padding-bottom: 5px;
    width: 100%;
    text-align: center;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 10px auto;
    max-width: 1000px;
}

.widget {
    background-color: #1a1a1a;
    border-radius: var(--border-radius);
    padding: 10px;
    text-align: center;
    box-shadow: var(--box-shadow);
    border: 3px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.widget-title {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1em;
}

.ip-display {
    border: 3px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: 10px;
    text-align: center;
    max-width: 800px;
    margin: 10px auto;
    background-color: #ffb6c1;
    color: var(--light-text);
    font-size: 1.1em;
}

.ip-display strong {
    color: var(--secondary-color);
    font-weight: bold;
}

.ip-display span {
    display: inline-block;
    margin-left: 10px;
    font-weight: bold;
    color: #ffffff;
}

.footer {
    margin-top: 10px;
    text-align: center;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        gap: 10px;
    }
    .info-card:nth-child(1),
    .info-card:nth-child(2),
    .info-card:nth-child(3) { margin: 0; }
    .info-card:nth-child(1) { margin-right: 5px; }
    .info-card:nth-child(2) { margin-left: 5px; }
    .info-card:nth-child(3) {
        margin-top: 10px;
        grid-column: span 2;
        width: calc(100% - 15px);
        margin-left: auto;
        margin-right: auto;
    }
    .stats-container { max-width: 700px; }
    .stat-item:nth-child(1),
    .stat-item:nth-child(2),
    .stat-item:nth-child(3) { margin: 0; }
    .stat-item:nth-child(1) { margin-right: 5px; }
    .stat-item:nth-child(2) { margin-left: 5px; }
    .stat-item:nth-child(3) {
        margin-top: 10px;
        grid-column: span 2;
        width: calc(100% - 15px);
        margin-left: auto;
        margin-right: auto;
    }
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .info-grid,
    .stats-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 10px;
    }
    .info-card, .stat-item { margin: 0; }
    .footer-widgets {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
}

/* Links & Odometer */
a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.odometer {
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
}