/* =============================================================================
   Neobrutalism CSS Components
   Works with Tailwind CDN (no @apply needed)
   ============================================================================= */

/* =============================================================================
   Buttons
   ============================================================================= */

.nb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px 0px #000000;
    transition: all 150ms ease-in-out;
    cursor: pointer;
    background-color: #ffffff;
}

.nb-btn:hover {
    box-shadow: 6px 6px 0px 0px #000000;
    transform: translate(-2px, -2px);
}

.nb-btn:active {
    box-shadow: 2px 2px 0px 0px #000000;
    transform: translate(2px, 2px);
}

.nb-btn:focus {
    outline: none;
    box-shadow: 6px 6px 0px 0px #000000, 0 0 0 3px rgba(0, 0, 0, 0.3);
}

.nb-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 4px 4px 0px 0px #000000;
}

/* Button Sizes */
.nb-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.nb-btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* =============================================================================
   Inputs
   ============================================================================= */

.nb-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 3px solid #000000;
    background-color: #ffffff;
    transition: all 150ms ease-in-out;
}

.nb-input:focus {
    outline: none;
    box-shadow: 4px 4px 0px 0px #000000;
    transform: translate(-2px, -2px);
}

.nb-input:disabled,
.nb-input[readonly] {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

.nb-input::placeholder {
    color: #9ca3af;
}

/* Textarea */
.nb-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 3px solid #000000;
    background-color: #ffffff;
    transition: all 150ms ease-in-out;
    resize: vertical;
    min-height: 100px;
}

.nb-textarea:focus {
    outline: none;
    box-shadow: 4px 4px 0px 0px #000000;
    transform: translate(-2px, -2px);
}

/* Select */
.nb-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 3px solid #000000;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 150ms ease-in-out;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.nb-select:focus {
    outline: none;
    box-shadow: 4px 4px 0px 0px #000000;
    transform: translate(-2px, -2px);
}

/* =============================================================================
   Cards
   ============================================================================= */

.nb-card {
    background-color: #ffffff;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px 0px #000000;
    padding: 1.5rem;
}

.nb-card-hover {
    transition: all 150ms ease-in-out;
}

.nb-card-hover:hover {
    box-shadow: 6px 6px 0px 0px #000000;
    transform: translate(-2px, -2px);
}

/* =============================================================================
   Badges
   ============================================================================= */

.nb-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid #000000;
    box-shadow: 2px 2px 0px 0px #000000;
}

/* =============================================================================
   Links
   ============================================================================= */

.nb-link {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 2px;
    text-decoration-color: #000000;
    transition: background-color 150ms ease-in-out;
}

.nb-link:hover {
    background-color: #FEF08A;
}

/* =============================================================================
   Form Labels
   ============================================================================= */

.nb-label {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* =============================================================================
   Alerts / Messages
   ============================================================================= */

.nb-alert {
    padding: 1rem;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px 0px #000000;
}

.nb-alert-error {
    background-color: #FBCFE8;
}

.nb-alert-success {
    background-color: #A7F3D0;
}

.nb-alert-warning {
    background-color: #FEF08A;
}

.nb-alert-info {
    background-color: #BFDBFE;
}

/* =============================================================================
   Dividers
   ============================================================================= */

.nb-divider {
    width: 100%;
    height: 3px;
    background-color: #000000;
    margin: 1rem 0;
}

.nb-divider-thin {
    height: 1px;
}

/* =============================================================================
   Animations
   ============================================================================= */

@keyframes nb-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.nb-animate-bounce {
    animation: nb-bounce 0.5s ease-in-out;
}

@keyframes nb-shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-4px);
    }
    75% {
        transform: translateX(4px);
    }
}

.nb-animate-shake {
    animation: nb-shake 0.3s ease-in-out;
}

/* =============================================================================
   Utility Classes
   ============================================================================= */

.nb-shadow {
    box-shadow: 4px 4px 0px 0px #000000;
}

.nb-shadow-sm {
    box-shadow: 2px 2px 0px 0px #000000;
}

.nb-shadow-lg {
    box-shadow: 6px 6px 0px 0px #000000;
}

.nb-border {
    border: 3px solid #000000;
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 640px) {
    .nb-btn {
        width: 100%;
        text-align: center;
    }

    .nb-card {
        padding: 1rem;
    }
}
