/* Character Stats Modal - Mobile Responsive Styles */

/* Modal responsive grid layouts */
@media (max-width: 768px) {
    .ability-scores-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .craft-skills-grid {
        grid-template-columns: 1fr !important;
    }
    .stats-modal-content {
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    .ability-scores-grid {
        grid-template-columns: 1fr !important;
    }
    .stats-modal-content h2 {
        font-size: 1.3rem !important;
    }
    .stats-modal-content h3 {
        font-size: 1rem !important;
    }
}

/* Ensure checkboxes and inputs are touch-friendly */
input[type="checkbox"].recipe-learned-checkbox {
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
}

/* Success bar mobile optimization */
@media (max-width: 768px) {
    .success-probability .success-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 5px;
    }

    .success-probability .success-header span {
        font-size: 0.8em !important;
    }

    .learned-checkbox label {
        font-size: 0.9em !important;
    }
}

@media (max-width: 480px) {
    .success-probability {
        margin-top: 8px !important;
    }

    .success-bar-container {
        height: 10px !important;
    }

    .learned-checkbox label span {
        font-size: 0.8em !important;
    }
}

/* Coffee Popup */
.coffee-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    text-decoration: none;
}

.coffee-popup img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.coffee-popup:hover img {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 221, 0, 0.3);
}

@media (max-width: 768px) {
    .coffee-popup {
        bottom: 15px;
        right: 15px;
    }
    
    .coffee-popup img {
        height: 45px;
    }
}
