/* NextGen NBN Checker - Wildly Fast Theme Extension */

/* NextGen specific container adjustments */
.nbn-nextgen-container {
    padding: 4rem 0;
    min-height: auto;
}

/* Form styling */
.nbn-nextgen-form {
    position: relative;
}

.nbn-form-step {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nbn-form-step.active {
    opacity: 1;
}

/* Upload Section */
.nbn-upload-section h3,
.nbn-address-section h3 {
    color: var(--wild-text);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.nbn-help-text {
    color: var(--wild-text-muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

/* Upload Area */
.nbn-upload-area {
    background: var(--wild-glass);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nbn-upload-area:hover {
    border-color: var(--wild-teal);
    background: rgba(32, 214, 180, 0.05);
}

.nbn-upload-area.dragging {
    border-color: var(--wild-orange);
    background: rgba(255, 142, 83, 0.1);
}

.nbn-upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: grayscale(0);
}

.nbn-upload-area p {
    color: var(--wild-text);
    font-size: 1.125rem;
    margin: 0.5rem 0;
}

.nbn-upload-formats {
    color: var(--wild-text-muted);
    font-size: 0.875rem;
}

/* Upload Preview */
.nbn-upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Model Input Section */
.nbn-model-input-section {
    margin-top: 2rem;
}

.nbn-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.nbn-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.nbn-divider span {
    background: var(--wild-dark);
    padding: 0 1rem;
    position: relative;
    color: var(--wild-text-muted);
    font-weight: 600;
}

.nbn-model-input-wrapper {
    background: var(--wild-glass);
    border-radius: 15px;
    padding: 1.5rem;
}

.nbn-model-label {
    display: block;
    color: var(--wild-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.nbn-model-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--wild-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nbn-model-input:focus {
    outline: none;
    border-color: var(--wild-teal);
    background: rgba(32, 214, 180, 0.05);
}

.nbn-model-input::placeholder {
    color: var(--wild-text-muted);
    font-size: 0.875rem;
}

.nbn-model-help {
    color: var(--wild-text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.nbn-preview-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--wild-glass);
    aspect-ratio: 1;
}

.nbn-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nbn-preview-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 78, 136, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.nbn-preview-remove:hover {
    background: var(--wild-coral);
    transform: scale(1.1);
}

/* Address Input */
.nbn-address-input-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.nbn-address-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--wild-glass);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--wild-text);
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.nbn-address-input:focus {
    outline: none;
    border-color: var(--wild-teal);
    background: rgba(32, 214, 180, 0.05);
}

.nbn-address-input::placeholder {
    color: var(--wild-text-muted);
}

/* Buttons */
.nbn-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nbn-btn-primary {
    background: var(--wild-gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 142, 83, 0.3);
}

.nbn-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 142, 83, 0.4);
}

.nbn-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nbn-btn-secondary {
    background: transparent;
    color: var(--wild-text);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.nbn-btn-secondary:hover {
    border-color: var(--wild-teal);
    color: var(--wild-teal);
}

.nbn-btn-link {
    background: transparent;
    color: var(--wild-teal);
    text-decoration: underline;
}

.nbn-button-group {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

/* Loading State */
.nbn-loading {
    text-align: center;
    padding: 3rem;
}

.nbn-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--wild-teal);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.nbn-loading-text {
    color: var(--wild-text);
    font-size: 1.125rem;
}

/* Error State */
.nbn-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.nbn-error-text {
    color: var(--wild-coral);
    margin: 0;
}

/* Results Section */
.nbn-results-wrapper {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nbn-results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.nbn-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.nbn-results-header.ready .nbn-results-icon {
    color: var(--wild-green);
}

.nbn-results-header.not-ready .nbn-results-icon {
    color: var(--wild-yellow);
}

.nbn-results-header h2 {
    color: var(--wild-text);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.nbn-address-display {
    color: var(--wild-text-muted);
    font-size: 1rem;
}

/* Result Cards */
.nbn-results-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.nbn-result-card {
    background: var(--wild-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.nbn-result-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.nbn-result-icon.success {
    background: rgba(62, 189, 96, 0.2);
    color: var(--wild-green);
}

.nbn-result-icon.warning {
    background: rgba(255, 217, 61, 0.2);
    color: var(--wild-yellow);
}

.nbn-result-content h3 {
    color: var(--wild-text);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.nbn-result-status {
    color: var(--wild-text);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.nbn-result-description {
    color: var(--wild-text-muted);
    font-size: 0.875rem;
}

/* Recommendations */
.nbn-recommendations {
    background: var(--wild-glass);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.nbn-recommendations h3 {
    color: var(--wild-text);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.nbn-recommendations ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nbn-recommendations li {
    color: var(--wild-text-muted);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.nbn-recommendations li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--wild-teal);
}

/* Results Actions */
.nbn-results-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Info Box */
.nbn-info-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 3rem;
    margin-top: 3rem;
}

.nbn-info-box h3 {
    color: var(--wild-text);
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.nbn-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.nbn-info-item {
    text-align: center;
}

.nbn-info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.nbn-info-item h4 {
    color: var(--wild-text);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.nbn-info-item p {
    color: var(--wild-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Device Details Section */
.nbn-device-details {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--wild-glass);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nbn-device-details h3 {
    color: var(--wild-text);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.nbn-device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.nbn-device-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.nbn-device-card:hover {
    border-color: var(--wild-teal);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(32, 214, 180, 0.2);
}

.nbn-device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nbn-device-type {
    background: var(--wild-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nbn-device-locked {
    background: rgba(255, 107, 107, 0.2);
    color: var(--wild-coral);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.nbn-device-info strong {
    color: var(--wild-text);
    font-size: 1.125rem;
    display: block;
    margin-bottom: 0.5rem;
}

.nbn-device-isp {
    color: var(--wild-orange);
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.nbn-device-ports {
    color: var(--wild-teal);
    font-size: 0.875rem;
    margin: 0.5rem 0;
    font-weight: 500;
}

.nbn-device-limitations {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
}

.nbn-device-limitations li {
    color: var(--wild-yellow);
    font-size: 0.875rem;
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.25rem;
}

.nbn-device-limitations li::before {
    content: '⚠';
    position: absolute;
    left: 0;
    font-size: 0.75rem;
}

.nbn-device-notes {
    color: var(--wild-text-muted);
    font-size: 0.875rem;
    margin-top: 0.75rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nbn-search-wrapper {
        padding: 2rem;
    }

    .nbn-search-heading h1 {
        font-size: 2rem;
    }

    .nbn-progress-steps {
        gap: 0;
    }

    .nbn-step-label {
        font-size: 0.75rem;
    }

    .nbn-button-group {
        flex-direction: column;
    }

    .nbn-btn {
        width: 100%;
        justify-content: center;
    }

    .nbn-results-details {
        grid-template-columns: 1fr;
    }

    .nbn-info-box {
        padding: 2rem;
    }
}
