/* Laminar menu styles shared by Scala.js and static pages */
.btlg-menu {
    z-index: 1001;
}

/* Floating menu for game pages */
.btlg-menu.menu-floating {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    pointer-events: none;
}

/* Static menu bar for non-game pages */
.btlg-menu.menu-static {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #001428 0%, #000a14 100%);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btlg-menu.menu-static .menu-bar {
    pointer-events: auto;
}

.btlg-app {
    padding-top: 70px; /* Space for fixed menu */
}

.menu-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    pointer-events: auto;
}

.menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    color: #00ffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
}

.menu-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.menu-btn:hover {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transform: scale(1.1);
}

.menu-btn.hide-btn {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    color: #00ffff;
}

.menu-btn.hide-btn:hover {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.welcome-message {
    color: #00ffff;
    font-size: 12px;
    margin-left: auto;
    padding-left: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.menu-select {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    color: #00ffff;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
}

.menu-select:hover {
    background: rgba(0, 255, 255, 0.2);
}

.menu-select option {
    background: #001428;
    color: #00ffff;
}

/* Dialog styles */
.dialog-overlay {
    display: none;
}

.dialog-overlay.visible {
    display: block;
    pointer-events: auto;
}

.dialog-overlay .dialog-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    pointer-events: auto;
}

.dialog-overlay .dialog-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2001;
    pointer-events: auto;
}

.dialog-content {
    background: linear-gradient(135deg, #001428 0%, #000a14 100%);
    border: 2px solid #00ffff;
    border-radius: 1rem;
    padding: 2rem;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.dialog-content h2 {
    color: #00ffff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: #80ffff;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 0.5rem;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.dialog-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #00ffff 0%, #00cccc 100%);
    color: #001428;
    font-weight: bold;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #00ffff;
    border: 1px solid #00ffff;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(0, 255, 255, 0.1);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-link {
    background: none;
    border: none;
    color: #80ffff;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.btn-danger {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: #fff;
}

.error-message {
    color: #ff6464;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

.loading {
    color: #80ffff;
    text-align: center;
    padding: 1rem;
}

/* OAuth buttons */
.oauth-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.oauth-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
    border: none;
}

.oauth-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.steam-btn {
    background: #171a21;
    color: #fff;
    border: 1px solid #66c0f4;
}

.google-btn {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.dialog-footer {
    margin-top: 1rem;
    text-align: center;
}

/* Highscore table styles */
.highscore-dialog {
    min-width: 400px;
}

.highscore-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.highscore-table th,
.highscore-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.highscore-table th {
    color: #00ffff;
    font-weight: bold;
}

.highscore-table td {
    color: #b0e0e0;
}

.no-scores {
    text-align: center;
    color: #80ffff;
    padding: 2rem;
}

/* Subscription dialog styles */
.subscription-dialog {
    min-width: 350px;
}

.subscription-status {
    padding: 1rem;
    text-align: center;
    color: #b0e0e0;
}

.subscription-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* Account page styles */
.account-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #001428 0%, #000a14 100%);
}

.account-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.account-content h1 {
    color: #00ffff;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.account-info {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.info-row:last-of-type {
    border-bottom: none;
}

.info-row .label {
    color: #80ffff;
    font-size: 0.9rem;
}

.info-row .value {
    color: #e0ffff;
    font-family: 'Share Tech Mono', monospace;
}

.account-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.not-logged-in {
    text-align: center;
    color: #b0e0e0;
    padding: 3rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 1rem;
}

.not-logged-in p {
    margin-bottom: 1rem;
}

.settings-section {
    margin-top: 2rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
}

.settings-section h2 {
    color: #00ffff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.setting-row .setting-label {
    color: #80ffff;
    font-size: 0.9rem;
}

.setting-row select {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    color: #00ffff;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
}

.setting-row select:hover {
    background: rgba(0, 255, 255, 0.2);
}

.setting-row select option {
    background: #001428;
    color: #00ffff;
}

/* Feedback page styles */
.feedback-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #001428 0%, #000a14 100%);
}

.feedback-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.feedback-content h1 {
    color: #00ffff;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.feedback-content > p {
    color: #80ffff;
    text-align: center;
    margin-bottom: 2rem;
}

.feedback-form {
    width: 100%;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    box-sizing: border-box;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 0.5rem;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300ffff' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

select.form-control option {
    background: #001428;
    color: #00ffff;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: 'Share Tech Mono', monospace;
}

.success-message {
    color: #00ff88;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
    padding: 0.75rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 0.5rem;
}

.feedback-form .btn-primary {
    width: 100%;
    margin-top: 1rem;
}

.feedback-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Forum page styles */
.forum-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #001428 0%, #000a14 100%);
}

.forum-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.forum-content h1 {
    color: #00ffff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.forum-content h2 {
    color: #80ffff;
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem 0;
}

/* Breadcrumbs */
.forum-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.forum-breadcrumbs a {
    color: #80ffff;
    text-decoration: none;
    transition: color 0.2s;
}

.forum-breadcrumbs a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.breadcrumb-separator {
    color: #406080;
}

/* Forum actions */
.forum-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Subforums grid */
.subforums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.subforum-card {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subforum-card:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.subforum-name {
    color: #00ffff;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.subforum-topic-count {
    color: #80ffff;
    font-size: 0.85rem;
}

/* Topics section */
.topics-section {
    background: rgba(0, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 1.5rem;
}

/* Topics list */
.topics-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.topic-row {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.topic-row:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
}

.topic-title {
    color: #00ffff;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.topic-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #80ffff;
}

.topic-author, .topic-date {
    color: #609090;
}

.topic-preview {
    color: #a0c0c0;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Posts list */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-card {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.post-author {
    color: #00ffff;
    font-weight: bold;
}

.post-date {
    color: #609090;
    font-size: 0.85rem;
}

.post-content {
    color: #c0e0e0;
    line-height: 1.6;
    white-space: pre-wrap;
}

.post-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

/* Forms (topic and post) */
.topic-form, .post-form {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Small buttons */
.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #80ffff;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
}

/* Disabled button state */
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Post history page */
.post-history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-entry {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.history-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #609090;
}

.history-content {
    color: #c0e0e0;
    white-space: pre-wrap;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.pagination button {
    min-width: 40px;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination button.active {
    background: linear-gradient(135deg, #00ffff 0%, #00cccc 100%);
    color: #001428;
    font-weight: bold;
}

/* Loading state */
.forum-page .loading {
    color: #80ffff;
    text-align: center;
    padding: 2rem;
}
