/* Superhero Generator Styles */

/* Header */
.superhero-header {
    background: rgba(17, 17, 17, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 193, 7, 0.1);
    border-radius: 16px;
    padding: 20px 24px;
}

.sh-title {
    color: #ffc107;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.sh-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.95rem;
    margin: 0;
}

/* Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hero-form {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 20px;
}

.hero-preview {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 460px;
}

.hero-loading {
    color: #ffc107;
    font-weight: 700;
    font-family: 'Roboto Mono', monospace;
}

/* Form controls */
.hero-form .form-label {
    display: block;
    color: #ffc107;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.hero-form .form-control,
.hero-form .form-select {
    background: rgba(26, 26, 26, 0.25) !important;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    transition: all 0.2s ease;
    display: block;
    width: 100%;
    padding: 10px 12px;
    line-height: 1.4;
}

.hero-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.hero-form .form-control:focus,
.hero-form .form-select:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #ffc107 !important;
}

/* Vertical spacing between fields (Bootstrap 4 gap polyfill) */
.hero-form .g-3 > [class*="col-"] {
    margin-bottom: 12px;
}

/* Button row gap polyfill for Bootstrap 4 */
.hero-form .d-flex.gap-2 { gap: 8px; }
.hero-form .d-flex.gap-3 { gap: 12px; }

/* Buttons */
.hero-form .btn-warning {
    background: #ffc107;
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    padding: 10px 18px;
}

.hero-form .btn-warning:hover {
    background: #ffcd39;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.25);
}

.hero-form .btn-outline-light {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.hero-form .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Preview image */
#resultImg {
    border-radius: 14px;
    border: 2px solid rgba(255, 193, 7, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}
