/* NH Road Sign Flashcards - Styles v3.0 */

.nh-flashcard-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header */
.flashcard-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #003d82;
}

.flashcard-header h2 {
    color: #003d82;
    font-size: 2.2em;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.flashcard-subtitle {
    color: #666;
    font-size: 1.1em;
    margin: 0;
}

/* Stats Bar */
.flashcard-stats {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

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

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 2em;
    font-weight: 700;
    color: #003d82;
}

/* Controls */
.flashcard-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #003d82;
    color: white;
    flex: 2;
}

.btn-primary:hover {
    background: #002d62;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    flex: 1;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Flashcard Display */
.flashcard-display {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sign Visual */
.sign-visual-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.sign-visual {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sign-image {
    max-width: 250px;
    max-height: 300px;
    width: auto;
    height: auto;
}

/* Sign Info Card */
.sign-info-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sign-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.sign-name {
    font-size: 2em;
    margin: 0 0 10px 0;
    color: #003d82;
    font-weight: 700;
}

.sign-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.sign-type,
.sign-importance {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.badge-regulatory {
    background: #ffebee;
    color: #c62828;
}

.badge-warning {
    background: #fff8e1;
    color: #f57f17;
}

.badge-guide {
    background: #e3f2fd;
    color: #1565c0;
}

/* Sign Description */
.sign-description-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #003d82;
}

.sign-description-box h4 {
    margin: 0 0 10px 0;
    color: #003d82;
    font-size: 1.1em;
}

.sign-description {
    margin: 0;
    line-height: 1.6;
    color: #333;
    font-size: 1.05em;
}

/* Sign Details */
.sign-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detail-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
}

.detail-item strong {
    display: block;
    color: #003d82;
    margin-bottom: 5px;
    font-size: 0.9em;
}

/* Tips Section */
.flashcard-tips {
    background: #fff3cd;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #ffc107;
    margin-top: 30px;
}

.flashcard-tips h4 {
    color: #856404;
    margin: 0 0 15px 0;
    font-size: 1.3em;
}

.flashcard-tips ul {
    margin: 0;
    padding-left: 20px;
}

.flashcard-tips li {
    color: #333;
    margin-bottom: 10px;
    line-height: 1.6;
}

.flashcard-tips strong {
    color: #856404;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nh-flashcard-container {
        padding: 20px;
        margin: 20px auto;
    }
    
    .flashcard-header h2 {
        font-size: 1.6em;
    }
    
    .flashcard-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .flashcard-controls {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .flashcard-display {
        grid-template-columns: 1fr;
    }
    
    .sign-visual-wrapper {
        min-height: 300px;
    }
    
    .sign-image {
        max-width: 200px;
        max-height: 250px;
    }
    
    .sign-name {
        font-size: 1.5em;
    }
    
    .sign-details {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .flashcard-controls,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
    
    .nh-flashcard-container {
        box-shadow: none;
    }
    
    .sign-visual-wrapper {
        background: #f0f0f0 !important;
    }
}
