/* WOOWMAP STRATEGY - Multiplayer Landing Page Styles (v0.0.11-alpha.1) */

.landing-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.96) 0%, rgba(2, 6, 23, 0.99) 100%);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #f8fafc;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.landing-overlay.hidden {
    display: none !important;
}

.landing-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 580px;
    padding: 32px;
    position: relative;
    animation: fadeInScale 0.25s ease-out;
}

.landing-card.picker-card {
    max-width: 980px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.landing-card.ready-card {
    max-width: 640px;
    text-align: center;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.landing-header {
    text-align: center;
    margin-bottom: 24px;
}

.landing-logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #38bdf8;
}

.landing-logo .accent {
    color: #f59e0b;
}

.landing-version {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.landing-notice {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.landing-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.landing-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.landing-btn.primary {
    background: #0284c7;
    color: #ffffff;
}
.landing-btn.primary:hover {
    background: #0369a1;
}

.landing-btn.primary.large {
    font-size: 18px;
    font-weight: 700;
    padding: 16px 36px;
    letter-spacing: 1px;
    background: #059669;
}
.landing-btn.primary.large:hover {
    background: #047857;
}

.landing-btn.secondary {
    background: #334155;
    color: #f1f5f9;
}
.landing-btn.secondary:hover {
    background: #475569;
}

.landing-btn.small {
    padding: 6px 12px;
    font-size: 12px;
}

.landing-btn.text {
    background: transparent;
    color: #94a3b8;
}
.landing-btn.text:hover {
    color: #f8fafc;
}

/* Forms */
.auth-form-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #334155;
}

.auth-form h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #f8fafc;
}

.auth-error-msg {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 14px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 4px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

/* Country Picker Layout */
.picker-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #334155;
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    font-size: 28px;
}

.user-greeting h2 {
    margin: 0;
    font-size: 20px;
    color: #f8fafc;
}

.highlight-user {
    color: #38bdf8;
}

.picker-subtitle {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #94a3b8;
}

.picker-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
    justify-content: space-between;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #64748b;
}

.search-box input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    box-sizing: border-box;
}

.filter-tabs {
    display: flex;
    gap: 6px;
}

.tab-btn {
    background: #0f172a;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
}

.tab-btn.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    overflow-y: auto;
    max-height: 52vh;
    padding-right: 6px;
}

.country-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s, border-color 0.15s;
}

.country-card.free {
    border-color: rgba(34, 197, 94, 0.4);
}

.country-card.free:hover {
    border-color: #22c55e;
    transform: translateY(-2px);
}

.country-card.claimed {
    border-color: rgba(239, 68, 68, 0.3);
    opacity: 0.85;
}

.country-card.unplayable {
    border-color: #334155;
    opacity: 0.55;
}

.country-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.country-flag {
    font-size: 26px;
}

.country-meta {
    display: flex;
    flex-direction: column;
}

.country-name {
    font-size: 14px;
    font-weight: 600;
    color: #f8fafc;
}

.country-iso {
    font-size: 11px;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
}

.country-card-status {
    margin-bottom: 10px;
}

.badge {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

.badge.green {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.badge.red {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.badge.gray {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

.country-action-btn {
    width: 100%;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.country-action-btn.claim {
    background: #059669;
    color: #ffffff;
}
.country-action-btn.claim:hover {
    background: #047857;
}

.country-action-btn.disabled {
    background: #1e293b;
    color: #64748b;
    cursor: not-allowed;
}

/* Confirm Modal */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.confirm-modal-overlay.hidden {
    display: none !important;
}

.confirm-modal-card {
    background: #1e293b;
    border: 1px solid #38bdf8;
    border-radius: 12px;
    padding: 28px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.confirm-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.confirm-flag {
    font-size: 36px;
}

.confirm-header h3 {
    margin: 0;
    font-size: 20px;
    color: #f8fafc;
}

.confirm-body {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 20px;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Ready State */
.ready-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
}

.ready-country-flag {
    font-size: 64px;
    margin-bottom: 8px;
}

.ready-greeting {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.ready-country-name {
    font-size: 32px;
    font-weight: 800;
    color: #38bdf8;
    margin: 0 0 6px 0;
    letter-spacing: 1px;
}

.ready-subtitle {
    font-size: 13px;
    color: #64748b;
}

.ready-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
}

/* Admin Panel */
.admin-panel-card {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    text-align: left;
}

.admin-badge {
    font-size: 11px;
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: 1px;
    font-family: 'JetBrains Mono', monospace;
}

.admin-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.admin-output {
    margin-top: 14px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 12px;
    font-size: 12px;
    max-height: 220px;
    overflow-y: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.admin-table th, .admin-table td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid #1e293b;
}

.admin-table th {
    color: #64748b;
    font-weight: 600;
}

/* Landing Page Public System Status Bar */
.landing-system-status-box {
    margin-top: 24px;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 8px;
    font-family: 'Inter', system-ui, sans-serif;
}

.landing-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #1e293b;
}

.landing-status-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #94a3b8;
    text-transform: uppercase;
}

.landing-status-time {
    font-size: 11px;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
}

.landing-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
    gap: 8px;
}

.landing-status-pill {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all 0.2s ease-in-out;
}

.landing-status-pill .pill-top {
    display: flex;
    align-items: center;
    gap: 5px;
}

.landing-status-pill .pill-label {
    font-size: 11px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.5px;
}

.landing-status-pill .pill-msg {
    font-size: 10px;
    color: #94a3b8;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.healthy, .status-dot.online {
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.status-dot.degraded, .status-dot.maintenance {
    background-color: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.status-dot.offline {
    background-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.status-dot.checking, .status-dot.unknown {
    background-color: #64748b;
    animation: pulseGray 1.2s infinite ease-in-out;
}

@keyframes pulseGray {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
