/* Security Checker Interface */
.security-checker-interface {
    margin-bottom: 2rem;
}

.checker-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

/* Input Section */
.input-wrapper {
    margin-bottom: 2rem;
}

.input-label {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.input-group-flex {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.url-input {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1f2937;
}

.url-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.check-btn {
    position: relative;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.check-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.check-btn:active:not(:disabled) {
    transform: translateY(0);
}

.check-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.check-btn.loading .btn-text {
    opacity: 0;
}

.check-btn.loading .btn-loader {
    display: block;
}

/* Quick Actions */
.quick-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.quick-actions-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quick-checks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.quick-check-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.quick-check-btn:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.quick-check-btn:active {
    transform: translateY(0);
}

.quick-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.quick-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
}

.quick-desc {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.3;
}

/* Loading State */
.loading-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.loading-state.active {
    display: flex;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    color: #6b7280;
    font-size: 0.9375rem;
    margin: 0;
}

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

/* Results Container */
.results-container {
    display: none;
    margin-top: 2rem;
    animation: fadeIn 0.3s ease;
}

.results-container.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Score Card */
.score-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.score-content {
    text-align: center;
}

.score-value-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.score-value {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.score-percent {
    font-size: 2rem;
    font-weight: 600;
    opacity: 0.9;
}

.score-label {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.score-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 5px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Headers Results */
.headers-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.header-item {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.header-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.status-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.status-badge.present {
    background: #10b981;
    color: #ffffff;
}

.status-badge.missing {
    background: #ef4444;
    color: #ffffff;
}

.status-badge.warning {
    background: #f59e0b;
    color: #ffffff;
}

.status-badge.info {
    background: #3b82f6;
    color: #ffffff;
}

.header-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
    flex: 1;
}

.header-value {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.75rem;
    
    font-size: 0.875rem;
    color: #1f2937;
    word-break: break-all;
    line-height: 1.5;
}

.header-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    line-height: 1.5;
}

.header-recommendation {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 0.875rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #1e40af;
    line-height: 1.5;
}

.header-recommendation strong {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .checker-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .input-group-flex {
        flex-direction: column;
    }

    .check-btn {
        width: 100%;
    }

    .quick-checks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .quick-check-btn {
        padding: 0.875rem 0.5rem;
    }

    .quick-icon {
        font-size: 1.5rem;
    }

    .score-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .score-value {
        font-size: 2.5rem;
    }

    .score-percent {
        font-size: 1.5rem;
    }

    .score-label {
        font-size: 1rem;
    }

    .header-item {
        padding: 1rem;
    }

    .header-name {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .checker-card {
        padding: 1rem;
    }

    .quick-checks-grid {
        grid-template-columns: 1fr;
    }

    .score-value {
        font-size: 2rem;
    }

    .score-percent {
        font-size: 1.25rem;
    }
}
