/* Poker-ABC.ch - Minimalistisches CSS Framework */
/* Fokus: Lesbarkeit, SEO, Performance */

/* ============================================
   CSS RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fafafa;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: #0d1b2a;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; margin-top: 1.5em; }
h3 { font-size: 1.375rem; margin-top: 1.25em; }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1em;
}

a {
    color: #1b4332;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2d6a4f;
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.25em;
}

strong {
    font-weight: 600;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr 300px;
    }
}

main {
    padding: 2rem 0;
}

article {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

aside {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    height: fit-content;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo:hover {
    color: #d8f3dc;
    text-decoration: none;
    opacity: 0.9;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

nav a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
}

nav a.active {
    background: rgba(255,255,255,0.2);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
        order: 3;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav a {
        display: block;
        padding: 0.75rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    padding: 0.75rem 0;
    font-size: 0.875rem;
    color: #666;
}

.breadcrumbs a {
    color: #1b4332;
}

.breadcrumbs span {
    margin: 0 0.5rem;
    color: #999;
}

/* ============================================
   CARDS & BOXES
   ============================================ */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card h3 {
    margin-top: 0;
    color: #1b4332;
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: none;
}

/* Info Box */
.info-box {
    background: #e8f5e9;
    border-left: 4px solid #2d6a4f;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.info-box h4 {
    color: #1b4332;
    margin-top: 0;
}

/* Warning Box */
.warning-box {
    background: #fff3e0;
    border-left: 4px solid #f57c00;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

/* ============================================
   TABLES
   ============================================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #1b4332;
    color: #fff;
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

tr:last-child td {
    border-bottom: none;
}

/* Responsive Table */
@media (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 1rem;
        border: 1px solid #eee;
        border-radius: 8px;
    }

    td {
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        font-weight: 600;
        color: #1b4332;
    }
}

/* ============================================
   POKER-SPECIFIC STYLES
   ============================================ */

/* Poker Hands */
.poker-hand {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.5rem;
    background: #f0f4f0;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-weight: bold;
}

.card-spade { color: #000; }
.card-club { color: #000; }
.card-heart { color: #c41e3a; }
.card-diamond { color: #c41e3a; }

/* Hand Rankings */
.hand-rank {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid #eee;
}

.hand-rank-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1b4332;
    min-width: 2rem;
    text-align: center;
}

.hand-rank-name {
    font-weight: 600;
    color: #0d1b2a;
}

/* Player Profile */
.player-profile {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .player-profile {
        grid-template-columns: 1fr;
    }
}

.player-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.player-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-box {
    background: #f0f4f0;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1b4332;
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section h4 {
    color: #1b4332;
    border-bottom: 2px solid #2d6a4f;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.sidebar-links {
    list-style: none;
    padding: 0;
}

.sidebar-links li {
    margin-bottom: 0.5rem;
}

.sidebar-links a {
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.sidebar-links a:hover {
    background: #f0f4f0;
    text-decoration: none;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #0d1b2a;
    color: #a0aec0;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #1e3a5f;
    font-size: 0.875rem;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: #666; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mt-2 { margin-top: 1rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Button */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #1b4332;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn:hover {
    background: #2d6a4f;
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid #1b4332;
    color: #1b4332;
}

.btn-outline:hover {
    background: #1b4332;
    color: #fff;
}

/* Grid Layout for Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Glossary specific */
.glossary-letter {
    font-size: 2rem;
    font-weight: 700;
    color: #1b4332;
    border-bottom: 2px solid #2d6a4f;
    padding-bottom: 0.5rem;
    margin: 2rem 0 1rem;
}

.glossary-term {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.glossary-term dt {
    font-weight: 600;
    color: #0d1b2a;
    margin-bottom: 0.25rem;
}

.glossary-term dd {
    color: #444;
    margin-left: 0;
}

/* Alphabet Navigation */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f0f4f0;
    border-radius: 8px;
}

.alphabet-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: #fff;
    border-radius: 4px;
    font-weight: 600;
}

.alphabet-nav a:hover {
    background: #1b4332;
    color: #fff;
    text-decoration: none;
}
