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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background-image: url('img/background.jpg');
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 1200px;
    width: 100%;
    overflow: hidden;
}

/* Login Screen */
#loginScreen {
    padding: 60px 40px;
    text-align: center;
}

#loginScreen h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

#loginScreen p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 40px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 1.1em;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.error {
    color: #e74c3c;
    margin-top: 15px;
    font-size: 0.95em;
}

/* Deck Screen */
#deckScreen {
    display: none;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    position: relative;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.deck-title {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
}

.deck-subtitle {
    font-size: 1.2em;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 20px;
}

.header .commander-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.commander-image {
    width: 150px;
    height: 210px;
    border-radius: 10px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.commander-details h2 {
    font-size: 1.8em;
    margin-bottom: 5px;
}

.commander-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.content {
    padding: 40px;
}

.section {
    margin-bottom: 40px;
}

.section h3 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.deck-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-card .number {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
}

.stat-card .label {
    color: #666;
    margin-top: 5px;
}

.strategy-text {
    line-height: 1.8;
    color: #555;
    font-size: 1.1em;
}

.notable-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card-item {
    text-align: center;
}

.card-item img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.card-item img:hover {
    transform: scale(1.05);
}

.card-item p {
    margin-top: 10px;
    color: #555;
    font-size: 0.9em;
}

/* Turn by Turn Guide */
#turnGuide {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.turn-phase {
    display: flex;
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.turn-number {
    font-size: 1.5em;
    font-weight: 700;
    color: #667eea;
    min-width: 100px;
    flex-shrink: 0;
}

.turn-content {
    flex: 1;
}

.turn-goal {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 8px;
}

.turn-actions {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .turn-phase {
        flex-direction: column;
        gap: 10px;
    }
    
    .turn-number {
        min-width: auto;
    }
}

/* Card Categories */
.category {
    margin-bottom: 30px;
}

.category-header {
    background: #667eea;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.category-header:hover {
    background: #5568d3;
}

.category-header h4 {
    font-size: 1.3em;
}

.category-count {
    background: rgba(255,255,255,0.3);
    padding: 5px 15px;
    border-radius: 20px;
}

.category-content {
    display: none;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.category-content.active {
    display: block;
}

.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.card-list-item {
    background: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-list-item img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 8px;
}

.card-list-item .card-name {
    font-size: 0.85em;
    color: #333;
    font-weight: 500;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }
    
    .commander-info {
        flex-direction: column;
    }

    .content {
        padding: 20px;
    }

    .notable-cards {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* FAQ Styles */
.faq-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    background: #f8f9fa;
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-toggle {
    font-size: 1.3em;
    color: #667eea;
    transition: transform 0.3s;
}

.faq-question.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 20px;
    color: #555;
    line-height: 1.7;
}

.faq-answer.active {
    display: block;
}

.faq-answer ul {
    margin: 10px 0 10px 20px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-subsection {
    margin-bottom: 15px;
}

.faq-subsection strong {
    color: #667eea;
    display: block;
    margin-bottom: 5px;
}