/* Components CSS - Specialized Component Styles */

/* Welcome Overlay Styles */
#welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.5s ease-in;
}

#welcome-content {
    background: linear-gradient(135deg, #DEB887, #F5DEB3);
    border: 4px solid #8B4513;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 12px 24px rgba(0,0,0,0.6);
    max-width: 600px;
    animation: slideIn 0.6s ease-out;
}

#welcome-content h1 {
    color: #654321;
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#welcome-content > p {
    color: #8B4513;
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.4;
}

#welcome-difficulty-selection h3 {
    color: #654321;
    font-size: 24px;
    margin-bottom: 20px;
}

.difficulty-options {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.difficulty-option {
    cursor: pointer;
    flex: 1;
    min-width: 150px;
    max-width: 180px;
}

.difficulty-option input[type="radio"] {
    display: none;
}

.difficulty-card {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #D2B48C;
    border-radius: 12px;
    padding: 0.75em;
    transition: all 0.3s ease;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.difficulty-card h4 {
    color: #654321;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    text-align: center;
    flex-shrink: 0;
}

.difficulty-card p {
    color: #8B4513;
    font-size: 14px;
    margin: 0;
    line-height: 1.3;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.difficulty-card small {
    color: #A0522D;
    font-style: italic;
    font-size: 12px;
    margin: 0;
    text-align: center;
    flex-shrink: 0;
}

.difficulty-option:hover .difficulty-card {
    border-color: #8B4513;
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.difficulty-option input[type="radio"]:checked + .difficulty-card {
    border-color: #32CD32;
    background: rgba(144, 238, 144, 0.8);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.difficulty-option input[type="radio"]:checked + .difficulty-card h4 {
    color: #228B22;
}

#start-game-btn {
    background: linear-gradient(135deg, #90EE90, #32CD32);
    border: 3px solid #228B22;
    border-radius: 12px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 15px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#start-game-btn:hover {
    background: linear-gradient(135deg, #98FB98, #00FF00);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

#start-game-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Projectile and explosion effects */
.projectile {
    position: absolute;
    width: var(--projectile-size);
    height: var(--projectile-size);
    background: #FF6B35;
    border-radius: 50%;
    z-index: 10;
}

.explosion {
    position: absolute;
    width: var(--explosion-size);
    height: var(--explosion-size);
    background: radial-gradient(circle, #FF6B35, #FF4500);
    border-radius: 50%;
    animation: explode 0.3s ease-out forwards;
    z-index: 11;
}