/* General Styles */
:root {
    --primary-color: #1e293b;
    --secondary-color: #045de9;
    --accent-color: #ff4500;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f0f2f5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

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

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.8rem;
}

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

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/poker-table.svg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    padding: 80px 0;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    margin-bottom: 20px;
}

/* Hand Charts Styles */
.hand-grid {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 2px;
    margin-top: 20px;
}

.hand-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 4px;
}

.premium {
    background-color: #2ecc71;
    color: white;
}

.strong {
    background-color: #3498db;
    color: white;
}

.playable {
    background-color: #f1c40f;
}

.marginal {
    background-color: #e67e22;
    color: white;
}

.fold {
    background-color: #e74c3c;
    color: white;
}

/* Game Phases */
.phase-section {
    margin-bottom: 40px;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.phase-section h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }
    
    nav {
        width: 100%;
        margin-top: 10px;
    }
    
    nav ul {
        flex-direction: column;
        display: none;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
        margin-left: 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hand-grid {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .hand-cell {
        font-size: 0.7rem;
    }
    
    .position-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hand-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Content Pages */
.page-content {
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-content h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.page-content p {
    margin-bottom: 20px;
}

.page-content ul, .page-content ol {
    margin-bottom: 20px;
    margin-left: 20px;
}

.page-content li {
    margin-bottom: 10px;
}

/* Table Positions Diagram */
.table-diagram {
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    position: relative;
}

.table-diagram img {
    width: 100%;
    border-radius: 50%;
}

.position-marker {
    position: absolute;
    background-color: var(--secondary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Position specific locations set in JavaScript */

/* Position Tabs */
.position-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.position-button {
    padding: 10px 20px;
    background-color: #f0f2f5;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.position-button.active {
    background-color: var(--secondary-color);
    color: white;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border-radius: 3px;
}

/* Position Table */
.position-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.position-table th, .position-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.position-table th {
    background-color: var(--primary-color);
    color: white;
}

.position-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Advanced Sections */
.advanced-section {
    margin-bottom: 30px;
}

.advanced-section h4 {
    color: var(--secondary-color);
    margin: 20px 0 10px;
}

.concept-block {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.concept-block h4 {
    margin-top: 0;
}

.hand-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.hand-group {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
}

.hand-group h4 {
    margin-top: 0;
    color: var(--secondary-color);
}
